You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As shown in #895, setting a property to python's boolean value (True/False) will end up saving the boolean value as the string value "True"/"False". This is because the property dictionary's values are converted to string by transform_dict_value_to_str implemented in #504.
So True -> "True"
Fix
I can see this as a common footgun. Let's add a fix so that any boolean in the properties dictionary values are converted to its lowercase string.
Apache Iceberg version
None
Please describe the bug 🐞
Issue
As shown in #895, setting a property to python's boolean value (
True
/False
) will end up saving the boolean value as the string value"True"
/"False"
. This is because the property dictionary's values are converted to string bytransform_dict_value_to_str
implemented in #504.So
True
->"True"
Fix
I can see this as a common footgun. Let's add a fix so that any boolean in the properties dictionary values are converted to its lowercase string.
Example
As a concrete example:
Will set the property as
But the expected value should be
The text was updated successfully, but these errors were encountered: