Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

exception using null in subscript #1172

Closed
cooper-lzy opened this issue Jun 24, 2021 · 1 comment
Closed

exception using null in subscript #1172

cooper-lzy opened this issue Jun 24, 2021 · 1 comment

Comments

@cooper-lzy
Copy link

(root@nebula) [basketballplayer]> with [1,2,3] AS list return list[null..2] as r
+----------+
| r        |
+----------+
| __NULL__ |
+----------+
Got 1 rows (time spent 336/925 us)

Thu, 24 Jun 2021 02:13:01 EDT

(root@nebula) [basketballplayer]> RETURN [1, 2, 3] [null..2] AS r;
[ERROR (-1009)]: SemanticError: Expect integer type for subscript range bound.

Thu, 24 Jun 2021 02:13:36 EDT
@CPWstatic
Copy link
Contributor

We don't throw runtime errors in such a situation. Only those errors which could be semantically analyzed will be threw.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants