Csaba Ringhofer created HIVE-26454: -------------------------------------- Summary: BINARY types within complex types are not quoted Key: HIVE-26454 URL: https://issues.apache.org/jira/browse/HIVE-26454 Project: Hive Issue Type: Bug Reporter: Csaba Ringhofer
While STRINGs are quoted and escaped, this is not done for BINARY members: select named_struct("s", "a", "b", cast("a" as binary)); result: {"s":"a","b":a} This is mainly problematic if special characters are involved, as this can lead to totally unparseble JSON: select named_struct("s", "a \"{", "b", cast("a \"{" as binary)); result: {"s":"a \"{","b":a "{} As existing workloads may rely on the current behavior, I think that it would be the best to add a configuration for this. -- This message was sent by Atlassian Jira (v8.20.10#820010)