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

Implement getArray() in BigQueryResultImpl #3655

Open
o-shevchenko opened this issue Jan 28, 2025 · 3 comments
Open

Implement getArray() in BigQueryResultImpl #3655

o-shevchenko opened this issue Jan 28, 2025 · 3 comments
Assignees
Labels
api: bigquery Issues related to the googleapis/java-bigquery API.

Comments

@o-shevchenko
Copy link
Contributor

Add support for array data types in BigQueryResultImpl.

Currently, there isn't a way to read repeated fields in BigQuery.

getArray method is not implemented and throws: 'java.sql.SQLFeatureNotSupportedException' exception.

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/java-bigquery API. label Jan 28, 2025
@PhongChuong PhongChuong self-assigned this Jan 30, 2025
@PhongChuong
Copy link
Contributor

@o-shevchenko , thanks for the report. I might not get to this item for another few weeks. Just so I understand, is there any specific timeline that you need t hit? We'll try to accommodate.

@o-shevchenko
Copy link
Contributor Author

Thanks for the answer @PhongChuong!
For now, we have a workaround with a manual transformation of arrays to ByteArray and back, but we want to simplify this logic. We are not blocked, so I don't want to rush you. We are looking for comprehensive support for BQ data types since we need to be able to read any BQ table of any type.
Another problem is reading and writing back STRUCT fields. It's quite problematic, especially for nested types.

@PhongChuong
Copy link
Contributor

@o-shevchenko ,
Thanks for the context. I'll add support for arrays soon.

Regarding structs, the java.sql.ResultSet interface does not seem directly support struct fields. I'll take a closer look and see how to best support this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/java-bigquery API.
Projects
None yet
Development

No branches or pull requests

2 participants