Skip to content

Schema differences between rust and go implementation #7443

Open
@askalt

Description

@askalt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions