[
https://issues.apache.org/jira/browse/FLINK-41664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-41664:
-----------------------------------
Labels: pull-request-available (was: )
> Parse only the needed parts of JSON in PARSE_JSON when only fixed paths are
> read
> ---------------------------------------------------------------------------------
>
> Key: FLINK-41664
> URL: https://issues.apache.org/jira/browse/FLINK-41664
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / Planner, Table SQL / Runtime
> Reporter: Sergey Nuyanzin
> Assignee: Sergey Nuyanzin
> Priority: Major
> Labels: pull-request-available
>
> Queries often parse a JSON document only to read a few fields from it:
> {code:sql}
> SELECT CAST(PARSE_JSON(s)['commit']['collection'] AS STRING) FROM t
> {code}
> Today {{PARSE_JSON}} and {{TRY_PARSE_JSON}} build a {{VARIANT}} of the whole
> document for every record, even when the query reads only a few fields.
> Better to parse only what is required
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)