Ramin Gharib created FLINK-39870:
------------------------------------

             Summary: Validate literal regex delimiters at planning time for 
STR_TO_MAP
                 Key: FLINK-39870
                 URL: https://issues.apache.org/jira/browse/FLINK-39870
             Project: Flink
          Issue Type: Sub-task
          Components: Table SQL / API, Table SQL / Planner, Table SQL / Runtime
            Reporter: Ramin Gharib
            Assignee: Ramin Gharib


{{STR_TO_MAP}} treats its list delimiter and key-value delimiter as Java 
regular expressions ({{{}String.spli{}}}t in strToMap). An invalid literal 
delimiter currently throws an uncaught {{PatternSyntaxException}} at runtime.   
                                                                   
                                                                                
                                                                 
Add a {{StrToMapInputTypeStrategy}} that validates the literal delimiter 
arguments at planning time, reusing 
{{{}StrategyUtils.validateLiteralPattern{}}}. This is the closest parallel to 
the {{REGEXP}} treatment in FLINK-39648. Non-literal delimiters are unaffected. 
The one-argument form, which uses the default delimiters, is unaffected.  



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

Reply via email to