jhorcicka commented on a change in pull request #229: Upgrade to Elasticsearch
7.3.1
URL: https://github.com/apache/metamodel/pull/229#discussion_r331913024
##########
File path:
elasticsearch/rest/src/test/java/org/apache/metamodel/elasticsearch/rest/ElasticSearchRestDataContextIT.java
##########
@@ -171,45 +189,56 @@ public void testExecutePrimaryKeyLookupQuery() throws
Exception {
}
}
+ @Test
+ public void testMissingPrimaryKeyLookupQuery() throws Exception {
+ indexType2TweeterDocuments();
+
+ final Table table =
dataContext.getDefaultSchema().getTableByName(DEFAULT_TABLE_NAME);
+ final Column[] pks = table.getPrimaryKeys().toArray(new Column[0]);
+
+ try (DataSet ds =
dataContext.query().from(table).selectAll().where(pks[0]).eq("missing").execute())
{
Review comment:
final?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services