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

EveyWu updated CALCITE-6320:
----------------------------
    Description: 
# Since Spark 2.0, string literals (including regex patterns) are unescaped in 
the parser phase,  details in 
[AstBuilder|[https://github.com/apache/spark/blob/76b1c122cb7d77e8f175b25b935b9296a669d5d8/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala#L2876C1-L2882C4]]
 # In Hive, unescape in the node normalization 
phase(`Dispatcher#dispatch`).[StrExprProcessor|[https://github.com/apache/hive/blob/03a76ac70370fb94a78b00496ec511e671c652f2/ql/src/java/org/apache/hadoop/hive/ql/parse/type/TypeCheckProcFactory.java#L403C1-L405C17]]
   is the processor for processing string unescape. 

 

 

 

 

> Parse SQL with Hive-style and Spark-style unescaped character literals
> ----------------------------------------------------------------------
>
>                 Key: CALCITE-6320
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6320
>             Project: Calcite
>          Issue Type: Bug
>            Reporter:  EveyWu
>            Priority: Minor
>
> # Since Spark 2.0, string literals (including regex patterns) are unescaped 
> in the parser phase,  details in 
> [AstBuilder|[https://github.com/apache/spark/blob/76b1c122cb7d77e8f175b25b935b9296a669d5d8/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala#L2876C1-L2882C4]]
>  # In Hive, unescape in the node normalization 
> phase(`Dispatcher#dispatch`).[StrExprProcessor|[https://github.com/apache/hive/blob/03a76ac70370fb94a78b00496ec511e671c652f2/ql/src/java/org/apache/hadoop/hive/ql/parse/type/TypeCheckProcFactory.java#L403C1-L405C17]]
>    is the processor for processing string unescape. 
>  
>  
>  
>  



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

Reply via email to