You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "coolbeevip (via GitHub)" <gi...@apache.org> on 2023/03/19 06:52:59 UTC
[GitHub] [calcite] coolbeevip commented on a diff in pull request #3120: [CALCITE-5593] Support for search queries using aliases
coolbeevip commented on code in PR #3120:
URL: https://github.com/apache/calcite/pull/3120#discussion_r1141271233
##########
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:
Sure, I need to understand the current ES integration testing method first, I am only familiar with ES testing based on testcontainers
--
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: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org