-
Notifications
You must be signed in to change notification settings - Fork 81
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
fix: Persist missingValueInterpretationMap in StreamWriter's Builder #2587
base: main
Are you sure you want to change the base?
Conversation
🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use -- conventional-commit-lint bot |
|
||
/** @return the missing value interpretation map used for the writer. */ | ||
public Map<String, AppendRowsRequest.MissingValueInterpretation> | ||
getMissingValueInterpretationMap() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we keep the get method?
@@ -105,6 +105,7 @@ private SchemaAwareStreamWriter(Builder<T> builder) | |||
streamWriterBuilder.setLocation(builder.location); | |||
streamWriterBuilder.setDefaultMissingValueInterpretation( | |||
builder.defaultMissingValueInterpretation); | |||
streamWriterBuilder.setMissingValueInterpretationMap(builder.missingValueInterpretationMap); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a e2e test in the it directory?
9ce8a21
to
98963a1
Compare
Warning: This pull request is touching the following templated files:
|
…ase the StreamWriter is recreated, the map will be used in the new StreamWriter too.
In case the StreamWriter is recreated, like during schema update, the map will be used in the new StreamWriter too.