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
testCastToJson<StringView>(VARCHAR(), {"\U0001F64F"}, {"\"\\ud83d\\ude4f\""});
at 0: expected "\ud83d\ude4f", but got "🙏"
Velox uses folly::json::escapeString to case string to json. This function allows to specify configuration options including
// If true, non-ASCII utf8 characters would be encoded as \uXXXX:
// - if the code point is in [U+0000..U+FFFF] => encode as a single \uXXXX
// - if the code point is > U+FFFF => encode as 2 UTF-16 surrogate pairs.
bool encode_non_ascii{false};
The only difference with Presto is that folly::json::escapeString uses lowercase hex digits, while Presto uses uppercase.
Bug description
Velox currently doesn't escape Unicode characters when casting to JSON.
Velox:
Velox uses folly::json::escapeString to case string to json. This function allows to specify configuration options including
The only difference with Presto is that folly::json::escapeString uses lowercase hex digits, while Presto uses uppercase.
CC: @zacw7 @aditi-pandit @amitkdutta @kagamiori @kevinwilfong
Related: FasterXML/jackson-core#717
System information
n/a
Relevant logs
No response
The text was updated successfully, but these errors were encountered: