Create a CreateFunctionCommand command.
Create a CreateFunctionCommand command.
For example:
CREATE [TEMPORARY] FUNCTION [db_name.]function_name AS class_name RETURNS ReturnType
USING JAR 'file_uri';
Handle other statements not appropriate for SnappyData's builtin sources but used by hive/file based sources in Spark.
Handle other statements not appropriate for SnappyData's builtin sources but used by hive/file based sources in Spark. This rule should always be at the end of the "start" rule so that this is used as the last fallback and not before any of the SnappyData customizations.
All recognized delimiters including whitespace.
All recognized delimiters including whitespace.
Create a DropFunctionCommand command.
Create a DropFunctionCommand command.
For example:
DROP [TEMPORARY] FUNCTION [IF EXISTS] function;
Handle query hints including plan-level like joinType that are marked to be handled later.
Handle query hints including plan-level like joinType that are marked to be handled later.
allow for first character of unquoted identifier to be a numeric
allow for first character of unquoted identifier to be a numeric
the string passed in *SHOULD* be lower case
the string passed in *SHOULD* be lower case
Expressions which can be preceeded by a NOT.
Expressions which can be preceeded by a NOT. This assumes one expression already pushed on stack which it will pop and then push back the result Expression (hence the slightly odd looking type)
Used for DataTypes.
Used for DataTypes. Not reserved and otherwise identical to "keyword" apart from the name so as to appear properly in error messages related to incorrect DataType definition.
Parse SQL without any other handling like query hints
Commands like GRANT/REVOKE/CREATE DISKSTORE/CALL on a table that are passed through as is to the SnappyData store layer (only for column and row tables).
Commands like GRANT/REVOKE/CREATE DISKSTORE/CALL on a table that are passed through as is to the SnappyData store layer (only for column and row tables).
Example:
GRANT SELECT ON table TO user1, user2; GRANT INSERT ON table TO ldapGroup: group1; CREATE DISKSTORE diskstore_name ('dir1' 10240) DROP DISKSTORE diskstore_name CALL SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(1)
spark parser used for hive DDLs that are not relevant to SnappyData's builtin sources
spark parser used for hive DDLs that are not relevant to SnappyData's builtin sources
A strictIdentifier is more restricted than an identifier in that neither any of the SQL reserved keywords nor non-reserved keywords will be interpreted as a strictIdentifier.
A strictIdentifier is more restricted than an identifier in that neither any of the SQL reserved keywords nor non-reserved keywords will be interpreted as a strictIdentifier.
The recognized whitespace characters and comments.
The recognized whitespace characters and comments.