Gustavo de Morais created FLINK-40390:
-----------------------------------------

             Summary: 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


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