Hyukjin Kwon created SPARK-61206:
------------------------------------

             Summary: DataType::to_ddl writes the backslashes of a field 
comment unescaped
                 Key: SPARK-61206
                 URL: https://issues.apache.org/jira/browse/SPARK-61206
             Project: Spark
          Issue Type: Bug
          Components: Connect
    Affects Versions: connect-rust-4.3.0
            Reporter: Hyukjin Kwon


DataType::to_ddl escapes the single quotes of a COMMENT but not its 
backslashes, so the server's DDL parser reads an escape sequence from them. A 
comment a\b comes back as a plus a backspace character, and a trailing 
backslash or a backslash before a quote breaks the literal. Spark's DDL escapes 
the backslashes first, then the quotes, and the official StructType.toDDL 
writes 'a\\b' for this comment and reads back a\b.




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to