Skip to content

NOT trigger 305 INTERNAL ERROR instead of "Syntax Error" #16437

@timbytimmy

Description

@timbytimmy

Search before asking

  • I searched in the issues and found nothing similar.

Version

2.0.5 (build: 0917050)

Describe the bug and provide the minimal reproduce step

DELETE DATABASE root.min;
CREATE DATABASE root.min;

CREATE ALIGNED TIMESERIES root.min.d1 (c0 INT64);
INSERT INTO root.min.d1(time, c0) VALUES (1641025977946, 1);

--query 1
SELECT c0 FROM root.min.d1
WHERE time BETWEEN 1641025977946 AND 1641026043074;

-- query 2
SELECT c0 FROM root.min.d1
WHERE time NOT BETWEEN 1641025977946 AND 1641026043074;

-- query 3
SELECT c0 FROM root.min.d1
WHERE NOT (time BETWEEN 1641025977946 AND 1641026043074);

-- query 4

SELECT c0 FROM root.min.d1
WHERE time BETWEEN 1641025977946 AND NOT 1641026043074;

What did you expect to see?

query 1: retrurn 1 result

query 2: retrurn empty

query 3: retrurn empty

query 4: retrurn syntax error

What did you see instead?

query 1: retrurn 1 result

query 2: retrurn empty

query 3: retrurn empty

query 4: retrurn 305 INTERNAL SERVER ERROR

Image

Anything else?

BETWEEN A AND NOT B, should returning a clear syntax error instead of a 305.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions