feat(influxdb3): add influxdb 3 engine over http
This commit is contained in:
1 parent
613c4f7ca3
commit
264f5c4836
25 files changed
+741
-19
No files matched your search
@@ -713,7 +713,7 @@ pub fn profile_for(db_type: DatabaseType) -> DdlDialectProfile {
|
||||
|
||||
// Non-tabular / not applicable for relational CREATE TABLE
|
||||
Redis | MongoDb | DynamoDb | Elasticsearch | Easysearch | Meilisearch | Qdrant | Milvus | Weaviate
|
||||
| ChromaDb | Neo4j | Cassandra | Etcd | ZooKeeper | Nacos | Consul | InfluxDb | VictoriaMetrics
|
||||
| ChromaDb | Neo4j | Cassandra | Etcd | ZooKeeper | Nacos | Consul | InfluxDb | InfluxDb3 | VictoriaMetrics
|
||||
| MessageQueue | Mqtt | Hbase => conservative_ansi(db_type),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,8 +238,9 @@ pub fn build_table_data_select_sql_with_database(
|
||||
};
|
||||
let predicate = normalize_where_input(options.where_input.as_deref());
|
||||
let where_clause = if predicate.is_empty() { String::new() } else { format!(" WHERE ({predicate})") };
|
||||
let default_order_by = if database_type == Some(DatabaseType::InfluxDb) {
|
||||
// InfluxQL only allows sorting of timestamp column
|
||||
let default_order_by = if matches!(database_type, Some(DatabaseType::InfluxDb) | Some(DatabaseType::InfluxDb3)) {
|
||||
// InfluxQL only allows sorting of the timestamp column; SQL-mode
|
||||
// InfluxDB 3 tables also key naturally on `time`.
|
||||
Some("time DESC".to_string())
|
||||
} else if database_type == Some(DatabaseType::Impala) {
|
||||
// Impala requires ORDER BY when OFFSET is present. Keeping the same
|
||||
|
||||
Reference in new issue
Block a user