Hyukjin Kwon created SPARK-61308:
------------------------------------

             Summary: Parse the interval ranges, name:type fields and type 
spellings of DataType.fromDDL as the server does
                 Key: SPARK-61308
                 URL: https://issues.apache.org/jira/browse/SPARK-61308
             Project: Spark
          Issue Type: Bug
          Components: Connect
    Affects Versions: connect-rust-4.3.0
            Reporter: Hyukjin Kwon


DataType.fromDDL in the Rust client turns invalid interval strings into a wrong 
type or into CalendarInterval, and rejects the name:type field form without a 
space and several Spark DDL spellings. Repro: DataType.fromDDL("interval year 
to second") returns CalendarInterval and DataType.fromDDL("interval hour to 
day") returns a reversed DayTimeInterval range, while the server raises 
ParseException for both. DataType.fromDDL("a:int") fails with 
INVALID_DATATYPE_FORMAT, while the server returns struct<a:int>.
Spellings the server accepts and the client rejects: a bare decimal, 
decimal(p), dec, numeric, real, character(n), timestamp_ltz, timestamp without 
time zone, timestamp with local time zone and time without time zone.




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