DDL Keywords & Reserved Words

GSQL Reserved Words

The following words are reserved for use by the Data Definition Language. That is, a graph schema or loading job may not use any of these words for the name of a vertex type, edge type, graph name, tag, or attribute. There is a separate list for Reserved Words in the Query Language. The compiler will reject the use of a reserved word as well as any word beginning with a reserved prefix as a user-defined identifier.

History

  • v3.1: Added reserved prefix gsql_sys_

Reserved prefixes:

  • gsql_sys_

Reserved word list:

1
ACCUM ADD ADMIN ALL
2
ALLOCATE ALTER AND ANY
3
AS ASC AVG BAG
4
BATCH BETWEEN BIGINT BLOB
5
BOOL BOOLEAN BOTH BREAK
6
BY CALL CASCADE CASE
7
CATCH CHAR CHARACTER CHECK
8
CLOB COALESCE COMPRESS CONST
9
CONSTRAINT CONTINUE COUNT CREATE
10
CURRENT_DATE CURRENT_TIME CURRENT_TIMESTAMP CURSOR
11
DATA_SOURCE DATETIME DATETIME_ADD DATETIME_SUB
12
DECIMAL DECLARE DEFAULT DELETE
13
DESC DISTRIBUTED DO DOUBLE
14
DROP EDGE ELSE ELSEIF
15
END ESCAPE EXCEPTION EXISTS
16
EXPRFUNCTIONS EXPRUTIL FALSE FILE
17
FILENAME FILTER FIXED_BINARY FLATTEN_JSON_ARRAY
18
FLOAT FOR FOREACH FROM
19
GLOBAL GRAPH GROUP GROUPBYACCUM
20
HAVING HEADER HEAPACCUM IF
21
IGNORE IN INDEX INPUT_LINE_FILTER
22
INSERT INT INT16 INT32
23
INT32_T INT64_T INT8 INTEGER
24
INTERPRET INTERSECT INTO IS
25
ISEMPTY JOB JOIN JSONARRAY
26
JSONOBJECT KAFKA KEY LEADING
27
LIKE LIMIT LIST LOAD
28
LOADACCUM LOG LONG MAP
29
NOT NOW NULL OFFSET
30
ON OR ORDER PINNED
31
POST_ACCUM PRIMARY PRIMARY_ID PRINT
32
PROXY QUERY QUIT RAISE
33
RANGE REDUCE REPLACE RETURN
34
RETURNS S3 SAMPLE SELECT
35
SELECTVERTEX SET STATIC STRING
36
SUM TARGET TEMP_TABLE THEN
37
TO TOKEN TOKENBANK TOKEN_LEN
38
TO_CSV TO_DATETIME TO_FLOAT TO_INT
39
TRAILING TRIM TRUE TRY
40
TUPLE TYPEDEF UINT UINT16
41
UINT32 UINT32_T UINT64_T UINT8
42
UINT8_T UNION UPDATE UPSERT
43
USING VALUES VERTEX WHEN
44
WHERE WHILE
Copied!

GSQL Non-Reserved Keywords

These keywords in the language are non-reserved, so users may use them for user-defined identifiers.

History

  • v3.1: Added DESCRIPTION, TAG, TAGS

Non-reserved keyword list:

1
ABORT API APPROX_COUNT ATTRIBUTE
2
BEGIN CHANGE CLEAR CONCAT
3
DATA DATASRC DECRYPT DEFAULT
4
DEFINE DESCRIPTION DIRECTED EMPTY
5
EXIT EXPORT EXPR_FUNC EXPR_UTIL
6
EXTERN FILENAMEVAR FLATTEN FLATTENJSON
7
GENERATEDATA GET GRANT HELP
8
ICON IMPORT INSTALL JSON
9
LOADING LOCAL LS MAX
10
MIN MINUS NUMERIC OPTION
11
OVERWRITE PAIR PASSWORD PUT
12
RECOMPILE REJECT_LINE_RULE RESUME REVOKE
13
ROLE RUN SCHEMA_CHANGE SCHEMA
14
SECONDARY_ID SECRET SEPARATOR SHOW
15
SPLIT STATS STATUS STORE
16
SUBSTR SYNTAX TAG TAGS
17
TEMPLATE TK TOFLOAT TOINT
18
TOKEN_BANK TOKENLEN UNDIRECTED USE
19
USER USERS VAL VECTOR
20
VERSION VOID WITH
Copied!
Last modified 10d ago