Influx database limitations

Influx database has specific limitations, which are described in this section.
For more information, see https://docs.influxdata.com/influxdb/v2/query-data/influxql/.

SQL support

Influx database does not directly support SQL. A parser translates the SQL queries to Influx-based query language. Only specific SQL commands are supported. For more information on SQL queries, see SQL queries.
SQL and InfluxQL comparison
Feature
SQL
InfluxQL
WHERE clause
Check mark icon
Check mark icon
GROUP BY clause
Check mark icon
not supported
ORDER BY clause
Check mark icon
partial support: only ORDER BY time is supported. See https://docs.influxdata.com/influxdb/v2/query-data/influxql/explore-data/order-by/.
HAVING
Check mark icon
not supported
LIMIT and SLIMIT clauses
Check mark icon
Check mark icon
OFFSET and SOFFSET clauses
Check mark icon
Check mark icon
EXTRACT clause
Check mark icon
not supported
CHAR_LENGTH clause
Check mark icon
not supported
Timezone queries
not supported
not supported
Subqueries
Check mark icon
Check mark icon
Regular expressions
not supported
not supported
CREATE statement
partial support
not supported
UPDATE statement
Check mark icon
not supported
DELETE statement
Check mark icon
partial support: the query requires either the FROM clause, the WHERE clause, or both. DELETE does not support fields (columns) in the WHERE clause. See https://docs.influxdata.com/influxdb/v2/query-data/influxql/manage-data/#delete-series-with-delete.
DROP statement
partial support
Aliases
AS table alias
Check mark icon
not supported
AS column alias
Check mark icon
Check mark icon
JOIN clauses
INNER join
Check mark icon
not supported
OUTER join
Check mark icon
not supported
CROSS join
Check mark icon
not supported
Operators
<, >, =, != (comparison operators)
Check mark icon
Check mark icon
AND, OR (logical operators)
Check mark icon
Check mark icon
not, IN, IS NULL, LIKE, EXISTS
Check mark icon
not supported
BETWEEN
Check mark icon
Check mark icon
Functions
Window functions: ROW_NUMBER, RANK, DENSE_RANK
Check mark icon
not supported
Aggregate functions: COUNT, MIN, MAX, AVG, SUM
Check mark icon
partial support:
  • ALL in COUNT, MIN, MAX, AVG, SUM is not supported by InfluxDB
  • DISTINCT in MIN, MAX, AVG, SUM is not supported by InfluxDB

Other limitations

  • INSERT statement is not supported as part of an SQL query. To insert data to a database table, you must use the dedicated INSERT method
  • Influx database is sensitive on time data. Time on the source device and on the database device must be synchronized to keep data consistency. Data record with the same timestamp is overwritten by Influx, so you must carefully design data structure of the database side.
  • Influx may not add record for column custom named
    time
    , which is a restricted phrase.
  • STATUS
    variable is not relevant to Influx database, because the connection is active only when data is transferred.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal