[ https://issues.apache.org/jira/browse/IMPALA-9206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gabor Kaszab updated IMPALA-9206: --------------------------------- Description: Copy-paste a review comment from [~ajeges]: I've found one more anomaly about apostrophe separator: This is succeeding although \ is not a separator: {code:java} > select cast("2010\\'02-01" as date FORMAT "YYYY'MM-DD"); {code} This works too; {code:java} > select cast("2010\\\'02-01" as date FORMAT "YYYY'MM-DD"); {code} This fails: {code:java} > select cast("2010\\\\'02-01" as date FORMAT "YYYY'MM-DD"); {code} was: Copy-paste a review comment from [~ajeges]: I've found one more anomaly about apostrophe separator: This is succeeding although \ is not a separator: > select cast("2010\\'02-01" as date FORMAT "YYYY'MM-DD"); This works too; > select cast("2010\\\'02-01" as date FORMAT "YYYY'MM-DD"); This fails: > select cast("2010\\\\'02-01" as date FORMAT "YYYY'MM-DD"); > SQL:2016 datetime patterns: Backslash with single quote is parsed incorrectly > ----------------------------------------------------------------------------- > > Key: IMPALA-9206 > URL: https://issues.apache.org/jira/browse/IMPALA-9206 > Project: IMPALA > Issue Type: Bug > Affects Versions: Impala 3.3.0 > Reporter: Gabor Kaszab > Assignee: Gabor Kaszab > Priority: Major > > Copy-paste a review comment from [~ajeges]: > I've found one more anomaly about apostrophe separator: > This is succeeding although \ is not a separator: > {code:java} > > select cast("2010\\'02-01" as date FORMAT "YYYY'MM-DD"); > {code} > This works too; > {code:java} > > select cast("2010\\\'02-01" as date FORMAT "YYYY'MM-DD"); > {code} > This fails: > {code:java} > > select cast("2010\\\\'02-01" as date FORMAT "YYYY'MM-DD"); > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org