[ 
https://issues.apache.org/jira/browse/FLINK-40390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated FLINK-40390:
-----------------------------------
    Labels: pull-request-available  (was: )

> Validate JSON_LENGTH path prefixes at plan time and reuse the shared JSON 
> codegen
> ---------------------------------------------------------------------------------
>
>                 Key: FLINK-40390
>                 URL: https://issues.apache.org/jira/browse/FLINK-40390
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / API
>            Reporter: Gustavo de Morais
>            Assignee: Gustavo de Morais
>            Priority: Major
>              Labels: pull-request-available
>
> While adding JSON_TYPE, we mapped some improvements that can be also used by 
> JSON_LENGTH:
>  # isPathDefinite is a function that can be added to the codegen stage to 
> make json_length more optimal, that way isPathDefinite only runs once.
>  # Add the strict/lax validation check to codegen stage to make json_length 
> more optimal, that way the json_path is only ever parsed against the regex 
> once, also change regex to "\\s*(strict|lax)\\s+\\$.*".
>  # reuse getOrCreateParsedJson(jsonType) for jsonLength.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to