Skip to content

Between ... and Formatting Exception #60

@qiqingli

Description

@qiqingli

Example:

select * from ids_order
where create_time between current_timestamp - interval'10 day' and current_timestamp;

Error Message:

["ERROR" - 9:28:13 AM] Syntax Error: Unexpected ";"
Was expecting to see: "!=", "%", "(", "*", "+", "-", ".", "/", "::", "<", "<=", "<>", "=", ">", ">=", "AND", "AT", "BETWEEN", "COLLATE", "DAY", "HOUR", "ILIKE", "IN", "IS", "ISNULL", "LIKE", "MINUTE", "MONTH", "NOT", "NOTNULL", "OPERATOR", "OR", "SECOND", "SIMILAR", "YEAR", "[", "^", [-,+,*,/,<,>,=,~,!,@,#,%,^,&,|,`,?], or whitespace
  |
4 | where create_time between current_timestamp - interval'10 day' and current_timestamp;
  |                                                                                     ^
Error: Syntax Error: Unexpected ";"

Plugin Verison: 0.17.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions