-
Notifications
You must be signed in to change notification settings - Fork 101
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
[FLIGHT][GO] CommandGetTables metadata being ignored #2434
Comments
Looks like you're absolutely correct, we're not properly propagating the metadata from flight sql.
It should definitely be using the correct |
Cool, thank you for the confirmation. I'll try to fix it |
I think the genesis of this was as a utility function for non-FlightSQL databases. |
…river (#2481) * Fixes [#2434](#2434) * Moved driver-agnostic metadata parsing out of `shared_utils.go` * Each driver can now implement its own logic for handling `XDBC_` fields using fields metadata * Snowflake and BigQuery drivers seem unaffected as they use separate implementations * Relocated `ToXdbcDataType` function to `shared_utils.go` to resolve circular dependency issues * Aligned implementation with documentation by: * Ensuring all documented XDBC_ fields are properly fetched * Removing undocumented fields (`COMMENT`, `CHARACTER_MAXIMUM_LENGTH`, `XDBC_SCALE`, `XDBC_PRECISION`) *`COMMENT`, `CHARACTER_MAXIMUM_LENGTH` seem to be snowflake specific even though it seems snowflake adbc driver has a separate implementation. * Couldn't find any documentation regarding `XDBC_SCALE`, `XDBC_PRECISION` * Restored tests that verify proper metadata field population
What would you like help with?
Hi,
I'm testing a connector that uses ADBC Go driver against a flight server. While I can obtain information about catalogs, schemas and tables, when it comes to the columns everything is empty.
I believe the issue is with the GO driver and compliance with FlightSQL but I'd like to get some validation on my interpretation.
FlightSQL specification states the following for
CommandGetTables
response:[shared_utils.go](https://github.com/apache/arrow-adbc/blob/c3149c0746d09877709e7625b7199e102d6d9c94/go/adbc/driver/internal/shared_utils.go#L378)
)Questions:
ARROW:FLIGHT:SQL:
keys described in the spec or thexdbc_
keys? Should it look forARROW:FLIGHT:SQL:
and fallback toxdbc_
?xdbc_
metadata fields?Thank you
The text was updated successfully, but these errors were encountered: