Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code to check for query in SparkBigQueryConfig fails when SELECT is not followed by space #409

Closed
chunyang opened this issue Jun 8, 2021 · 0 comments
Assignees

Comments

@chunyang
Copy link

chunyang commented Jun 8, 2021

The code in SparkBigQueryConfig which checks whether the user passed a query fails when SELECT is followed by a new line.

A query with this format works:

SELECT xyz, abc
FROM ...

A query with this format fails:

SELECT
    xyz, abc
FROM ...

with this error:

java.lang.IllegalArgumentException: Invalid Table ID 'SELECT
    xyz, abc
FROM ...'. Must match '^(((\S+)[:.])?(\w+)\.)?([\S&&[^.:]]+)$$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants