dongjoon-hyun commented on issue #26449: [SPARK-29822][SQL] Fix cast error when there are spaces between signs and values URL: https://github.com/apache/spark/pull/26449#issuecomment-552213564 Hi, @yaooqinn . I know this PR is valid on `master` branch. Could you put the pointer in the PR description about what causes this? For `3.0-preview`, it worked like the following. ``` spark-sql> select cast(v as interval) from values ('+ 1 second') t(v); interval 1 seconds Time taken: 2.011 seconds, Fetched 1 row(s) spark-sql> select cast(v as interval) from values ('- 1 second') t(v); interval -1 seconds Time taken: 0.033 seconds, Fetched 1 row(s) spark-sql> select version(); 3.0.0 007c873ae34f58651481ccba30e8e2ba38a692c4 Time taken: 1.181 seconds, Fetched 1 row(s) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
