Skip to content

Schema differences between rust and go implementation #7443

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

Open
askalt opened this issue Apr 24, 2025 · 0 comments
Open

Schema differences between rust and go implementation #7443

askalt opened this issue Apr 24, 2025 · 0 comments

Comments

@askalt
Copy link

askalt commented Apr 24, 2025

It was noticed that there is a difference between the schemas that go arrow flight adbc driver expects (in the response on get-db-schemas-request):

https://github.com/apache/arrow-go/blob/a62d36fba3b2df5be1d61a4a34fbd9bf0756676e/arrow/flight/flightsql/schema_ref/reference_schemas.go#L26-L29

Here catalog_name is nullable, but in rust we have non-nullable field:

/// The schema for GetDbSchemas
static GET_DB_SCHEMAS_SCHEMA: Lazy<SchemaRef> = Lazy::new(|| {
Arc::new(Schema::new(vec![
Field::new("catalog_name", DataType::Utf8, false),
Field::new("db_schema_name", DataType::Utf8, false),
]))
});

Obviously, one can return any schema from the server, but want to figure out, who is actually right and where the source of truth.

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

1 participant