Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.21.0
-
None
Description
In https://github.com/apache/calcite/blob/master/elasticsearch/src/main/java/org/apache/calcite/adapter/elasticsearch/ElasticsearchTransport.java#L121 when the indexName has some special characters, the request will fail for Elasticsearch server returning HTTP 400 error.
val connection = DriverManager.getConnection("jdbc:calcite:") val calciteConnection = connection.asInstanceOf[CalciteConnection] val rootSchema = calciteConnection.getRootSchema() val esProperties = new util.HashMap[String, AnyRef]() esProperties.put("coordinates", "{'elasticsearch url': 80}") rootSchema.add("es", new ElasticsearchSchemaFactory().create(rootSchema, "es", esProperties))
Attachments
Attachments
Issue Links
- links to