Repository navigation
Fix input empty as default for nullable string field in CSV InputFormat - #58225
Conversation
|
This is an automated comment for commit 7ee8e14 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
There was a problem hiding this comment.
I don't understand. So, here "empty as default" for Nullable(String) should yield NULL.
It looks like, you've changed the correct behavior with the incorrect one.
|
Ok, I understand that this is just another choice. Then it should be controlled by a setting, and the category has to be changed from "bug fix" to something else. |
|
I have add a csv settings |
10d790f to
c4e8eb6
Compare
There was a problem hiding this comment.
The setting name is difficult to understand.
There was a problem hiding this comment.
The documentation is not enough to understand the setting.
|
I can continue this PR, but it will take more time. |
|
The setting should be named The documentation should say: The setting should not be enabled by default. The code should not do type checks in the ^ if these requirements are fulfilled, we can merge this PR. |
|
Thanks for you review. @alexey-milovidov But, The check code may should not be outside of the |
6a9d0aa to
e4574fb
Compare
e4574fb to
6044616
Compare
6044616 to
ddfca6b
Compare
cecfd2c to
7ee8e14
Compare
|
Dear @alexey-milovidov, this PR hasn't been updated for a while. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
|
I've continued this change in #107577: rebased onto current |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
While deserialize csv input, if we set the config

input_format_csv_empty_as_default = true, which would set default value to field if the input is empty, and this is also take effect for Nullable(String) type, in this case, if the input is a empty string, then the field will be set default value asNULL, as show belowHere it is not suitable,to set
NULLwhen the input is empty forNullable(String)type, and it is better to set a empty string for the field.Documentation entry for user-facing changes