Repository navigation
[BEAM-13959] Fix StorageApi writes when a field is named f - #16872
Merged
Merged
Conversation
chamikaramj
reviewed
Feb 16, 2022
Contributor
There was a problem hiding this comment.
Let's document why we are special casing "f" for testing here or make this a separate test.
Contributor
There was a problem hiding this comment.
This is the API users should use for writing to fields named "f" ? We should document this in Java docs ? Also, is this fixed for all write methods or just Storage API ?
Contributor
Author
There was a problem hiding this comment.
None of the other write methods create TableRow objects. This one did because it had to convert to protos for Vortex.
Contributor
There was a problem hiding this comment.
Do we also support fields named "f" at top level (not just nested or repeated fields) after this change ? If let's add a test for that as well. If not let's clarify in the documentation.
reuvenlax
force-pushed
the
fix_vortex_f
branch
from
February 16, 2022 21:57
401e1d3 to
c577f4a
Compare
Contributor
|
Run Java PostCommit |
TheNeuralBit
pushed a commit
to TheNeuralBit/beam
that referenced
this pull request
Feb 17, 2022
…hen a field is named f
17 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The TableRow class supports being used as a JSON map (set()/get()) or as a list of TableCell elements (setF()/getF()). When used in the former manner, a column cannot be named 'f', as 'f' is interpreted to mean the list of TableCell elements. This PR ensures that we support setF/getF and use that codepath when processing nested records