Skip to content

[Format/C++/Java] Removing field layout from Schema.fbs breaks backward compatibility #19218

@asfimport

Description

@asfimport

Change in ARROW-1785

Breaks backward compatibility with schema generated in prior versions of Arrow, as VectorLayout field was removed from Field table.

This is definitely not supported behavior in FlatBuffers.

I suggest to put back following field

layout: [ VectorLayout ] (deprecated);

 into 

table Field 

and mark it "deprecated" - as shown above

It will also require putting back 

table VectorLayout

which can have all the deprecated fields as well.

code generation footprint will be minimal in this case, as FlatBuffers won't generate getters for deprecated fields, but it will really solve backward compatibility issues.

Also may be a good idea to introduce "version" into Schema.

 

 

 

Reporter: Yuliya Feldman / @yufeldman
Assignee: Yuliya Feldman / @yufeldman

PRs and other links:

Note: This issue was originally created as ARROW-2843. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions