SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 67739: The message "panic: runtime error" occurs if you do not include the SCHEMA= option in a LIBNAME statement when accessing a Google BigQuery database

DetailsHotfixAboutRate It

When you try to access a Google BigQuery database via a LIBNAME statement, an error similar to the following might occur:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7f7132d86441]
goroutine 17 [running, locked to thread]:
cloud.google.com/go/storage.(*Client).Close(...)
        /go/pkg/mod/cloud.google.com/go/storage@v1.8.0/storage.go:154
main.gbqgoFreeHandle(0x4, 0x7f7157dc3be0, 0xc8, 0x80)
        /home/sdsci/access-bigquery/bigquery/connect.go:277 +0x71
main._cgoexpwrap_c6e24a2f0a30_gbqgoFreeHandle(0x4, 0x7f7157dc3be0, 0xc8, 0x0)
        _cgo_gotypes.go:390 +0x41
/usr/local/bin/runcmdfile[43]: .: line 68: 29318: Abort

The issue occurs when you do not include the SCHEMA= option in the LIBNAME statement.

Click the Hot Fix tab in this note to access the hot fix for this issue.

After you apply the hot fix, the error changes to the following because SCHEMA is a required option:

ERROR: CLI error trying to establish connection: Invalid connection string attribute : SCHEMA is required for this datasource
ERROR: Error in the LIBNAME statement.


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to Google BigQueryLinux for x649.419.4 TS1M6
SAS SystemSAS/ACCESS Interface to Google BigQuery (on SAS Viya)Linux for x64V.03.052020.0.6ViyaViya
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.