-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[BUG] columnMapping
readerFeatures is missing when icebergCompatV1(2) is enabled
#3154
Comments
cc. @lzlfred @harperjiang |
@vkorukanti @lzlfred @harperjiang Could you let me know whether this is incorrect documentation or implementation bug? |
@ebyhr the document said that
I believe the behavior you observed is just as described in the doc when we have writer version 5/6, and thus don't consider it a bug. |
The writer version is 7 and it mentions "add the feature columnMapping to both readerFeatures and writerFeatures".
Then, I would recommend updating the protocol. I expect readerFeatures always have |
I think we need to update the protocol to make that paragraph clearer. When reader version is 2 the readerFeatures doesn't exist, and if it does, it would break the protocol:
|
Actually, after running some experiment I realized Spark Delta doesn't allow you to enable column mapping if reader is version 2 and writer is version 7. But it allows you to create it, so it is inconsistent, I can't say what is the correct behavior, my guess is supporting
This fails:
This works:
|
Bug
Which Delta project/connector is this regarding?
Describe the problem
Writer Requirements for Column Mapping mentions:
However,
protocol
entry doesn't havecolumnMapping
inreaderFeatures
field.Steps to reproduce
Observed results
Expected results
icebergCompatV1 or icebergCompatV2 exists in readerFeatures.
Further details
Environment information
Willingness to contribute
The Delta Lake Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the Delta Lake code base?
The text was updated successfully, but these errors were encountered: