coolbeevip commented on code in PR #3120:
URL: https://github.com/apache/calcite/pull/3120#discussion_r1141344524
##########
elasticsearch/src/main/java/org/apache/calcite/adapter/elasticsearch/ElasticsearchSchema.java:
##########
@@ -120,7 +120,9 @@ private Set<String> indicesFromElastic() throws IOException
{
throw new IllegalStateException(message);
}
+ Set<String> aliases =
Sets.newHashSet(root.findPath("aliases").fieldNames());
Set<String> indices = Sets.newHashSet(root.fieldNames());
+ indices.addAll(aliases);
Review Comment:
Hi, I added a method to create an alias and added unit tests
zips_alias is an alias of zips
```
@Test void testAlias() {
calciteAssert()
.query("select state, city from elastic.zips_alias");
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]