Unsupported SQL Syntax
Review this topic for syntax that is not currently supported for use with SQL Analytics.
SELECT StatementsCurrently, the ChaosSearch database connection supports only
SELECTstatements against the Refinery views and content.
The SQL Analytics API does not currently support the following statements or syntax:
-
Within the
SELECTsyntax:WITHclause support andWITHquery chaining- Joins of type: left, right, full, cross (cartesian)
- The ALL option used in
LIMIT ALLsyntax UNIONorINTERSECTorEXCEPT- GROUPING syntax for:
GROUPING SETS ( ( column [, ...] ) [, ...] )CUBE ( column [, ...] )ROLLUP ( column [, ...] )
CASTinWHEREorSELECTlist[ NULLS { FIRST | LAST } ][ OFFSET count [ { ROW | ROWS } ] ]approx_distinct()- SQL constants such as
NOW,CURRENT_DATE,CURRENT_TIME - Subquery syntax that uses
WHERE EXISTSorWHERE foo IN COUNT DISTINCTalongside other aggregations
-
Data manipulation language (DML) commands to change ChaosSearch index data such as
INSERT,UPDATE,DELETEstatements -
Data definition language (DDL) commands to manage ChaosSearch index-related objects such as views (tables) with
ALTER,CREATE,DROPstatements -
Stored Procedures, or user-defined functions
-
Show command variants such as:
SHOW CREATE MATERIALIZED VIEW,SHOW CREATE SCHEMA,SHOW CREATE TABLE,SHOW CREATE VIEW,SHOW FUNCTIONS,SHOW GRANTS,SHOW ROLE GRANTS,SHOW ROLES,SHOW SESSION,SHOW STATS -
For the
SHOW columns from view LIKE 'pattern', thepatternfilter is not supported. -
The date and time functions
current_date,current_time,localtime, andlocaltimestamp. Note thatnow()andcurrent_timestampreturn epoch timestamps in milliseconds. -
Any functions not listed in the SQL Functions Support Reference
-
Any other SQL syntax not specified in these topics.
Updated 5 months ago
