The ZetaSQL Toolkit is a library that helps users use ZetaSQL Java API to perform SQL analysis for multiple query engines, including BigQuery and Cloud Spanner.
Apache License 2.0
39
stars
10
forks
source link
Valid dataset id is flagged as invalid due to incorrect regex pattern #68
During parsing I got an invalid BigQuery reference error, after looking at the code I realized that this regex pattern is the reason: https://github.com/GoogleCloudPlatform/zetasql-toolkit/blob/d31b44cb0f45f73f20c52deaba87cae79e399fdf/zetasql-toolkit-bigquery/src/main/java/com/google/zetasql/toolkit/catalog/bigquery/BigQueryReference.java#L33
BigQuery dataset name can contain any letters, numbers, and underscores, https://cloud.google.com/bigquery/docs/datasets#dataset-naming.