Skip to content

Commit 7a11f6c

Browse files
committed
NLPchina#736 fix testcase selectFieldWithSpace
1 parent 38ad264 commit 7a11f6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>org.nlpcn</groupId>
55
<artifactId>elasticsearch-sql</artifactId>
6-
<version>6.3.2.0</version>
6+
<version>6.3.2.1</version>
77
<packaging>jar</packaging>
88
<description>Query elasticsearch using SQL</description>
99
<name>elasticsearch-sql</name>

src/test/java/org/nlpcn/es4sql/QueryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void selectFieldWithSpace() throws IOException, SqlParseException, SQLFea
6666
String[] arr = new String[] {"test field"};
6767
Set expectedSource = new HashSet(Arrays.asList(arr));
6868

69-
SearchHits response = query(String.format("SELECT `test field` FROM %s/phrase where `test field` is not null", TEST_INDEX_PHRASE));
69+
SearchHits response = query(String.format("SELECT ['test field'] FROM %s/phrase where ['test field'] is not null", TEST_INDEX_PHRASE));
7070
SearchHit[] hits = response.getHits();
7171
for(SearchHit hit : hits) {
7272
Assert.assertEquals(expectedSource, hit.getSourceAsMap().keySet());

0 commit comments

Comments
 (0)