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

When names of tables start with same string, _TABLE_SUFFIX expansion may fail #272

Open
llofberg opened this issue Feb 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@llofberg
Copy link

llofberg commented Feb 23, 2024

What happened?

For example when dataset contains tables "event_" and "event_fresh_", the following query may fail.

select * from `db.event_* where _TABLE_SUFFIX between '20240101' and '20240201'

The error message from "bq" command is following:

Exception raised in query operation: Error processing job 'aaa:bbb_1': failed to scan rows: strconv.parseInt: parsing "_fresh_20240101": invalid syntax

What did you expect to happen?

Expected the query to return rows contained in event_* table.

How can we reproduce it (as minimally and precisely as possible)?

Create two tables event_ and event_fresh_, insert data to both (?) run

select * from `db.event_* where _TABLE_SUFFIX between '20240101' and '20240201'

Anything else we need to know?

Command I used in terminal.

bq query --api http://localhost:9050 --project_id test "select * from `db.event_* where _TABLE_SUFFIX between '20240101' and '20240201' limit 10"

@llofberg llofberg added the bug Something isn't working label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant