You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Daniel Becker (Jira)" <ji...@apache.org> on 2022/12/06 16:18:00 UTC
[jira] [Created] (IMPALA-11778) Printing maps may produce invalid json
Daniel Becker created IMPALA-11778:
--------------------------------------
Summary: Printing maps may produce invalid json
Key: IMPALA-11778
URL: https://issues.apache.org/jira/browse/IMPALA-11778
Project: IMPALA
Issue Type: Improvement
Components: Backend
Reporter: Daniel Becker
Assignee: Daniel Becker
Impala allows non-string types, for example numbers, to be keys in maps. We print maps as json objects, but json objects only allow string keys. If the Impala map has for example an INT key, the printed json is invalid.
Hive has the same issue.
We could introduce a query option that, when set to true, would convert non-string keys to strings to produce valid json.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)