Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit 48959fc

Browse files
authored
Update ES and plugin version and fix broken test and config (#30)
* Update ES and plugin version and fix broken test and config * Update comments for consistency * Correct grammar in comment
1 parent 313884c commit 48959fc

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ After doing this, you need to restart the Elasticsearch server. Otherwise you ma
1919
The package uses the [Gradle](https://docs.gradle.org/4.10.2/userguide/userguide.html) build system.
2020

2121
1. Checkout this package from version control.
22-
2. To build from command line set `JAVA_HOME` to point to a JDK >=11
22+
2. To build from command line set `JAVA_HOME` to point to a JDK >=12
2323
3. Run `./gradlew build`
2424

2525
You may note that some Maven configuration file is present in the source too. That is because we were using Maven and the migration to Gradle is still in progress.

build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
buildscript {
1717

1818
ext {
19-
es_version = System.getProperty("es.version", "6.6.2")
19+
es_version = System.getProperty("es.version", "6.7.1")
2020
}
2121
// This isn't applying from repositories.gradle so repeating it here
2222
repositories {
@@ -46,7 +46,7 @@ repositories {
4646
}
4747

4848
ext {
49-
opendistroVersion = '0.8.0'
49+
opendistroVersion = '0.9.0'
5050
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
5151
}
5252

@@ -127,10 +127,10 @@ forbiddenPatterns {
127127
// TODO: fix license. skip dependency license checks
128128
dependencyLicenses.enabled = false
129129

130-
// We don't need to following ES naming conventions.
131-
// see https://github.com/elastic/elasticsearch/blob/5ca6f312058ec8c7fbac072c4648246e7dfb4957/buildSrc/src/main/java/org/elasticsearch/gradle/precommit/NamingConventionsTask.java
132-
// enable namingConvention check will cause errors like: "Classes ending with [Tests] must subclass [LuceneTestCase]"
133-
namingConventions.enabled = false
130+
// We don't need to follow ES testing naming conventions.
131+
// see https://github.com/elastic/elasticsearch/blob/323f312bbc829a63056a79ebe45adced5099f6e6/buildSrc/src/main/java/org/elasticsearch/gradle/precommit/TestingConventionsTasks.java
132+
// enable testingConventions check will cause errors like: "Classes ending with [Tests] must subclass [LuceneTestCase]"
133+
testingConventions.enabled = false
134134

135135
// TODO: need to verify the thirdPartyAudi
136136
// currently it complains missing classes like ibatis, mysql etc, should not be a problem

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<modelVersion>4.0.0</modelVersion>
1919
<groupId>com.amazon.opendistroforelasticsearch</groupId>
2020
<artifactId>opendistro-sql</artifactId>
21-
<version>6.6.2.0</version>
21+
<version>6.7.1.0</version>
2222
<packaging>jar</packaging>
2323
<description>Open Distro for Elasticsearch SQL</description>
2424
<name>opendistro-sql</name>
@@ -27,7 +27,7 @@
2727
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2828
<runSuite>**/MainTestSuite.class</runSuite>
2929
<elasticsearch.plugin.name>opendistro-sql</elasticsearch.plugin.name>
30-
<elasticsearch.version>6.6.2</elasticsearch.version>
30+
<elasticsearch.version>6.7.1</elasticsearch.version>
3131
<elasticsearch.plugin.classname>com.amazon.opendistroforelasticsearch.sql.plugin.SqlPlug</elasticsearch.plugin.classname>
3232
</properties>
3333

src/test/java/com/amazon/opendistroforelasticsearch/sql/intgtest/PreparedStatementTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public boolean hasContent() {
118118
}
119119

120120
@Override
121-
public BytesReference content() {
121+
public BytesReference innerContent() {
122122
return new BytesArray(this.payload);
123123
}
124124
}

0 commit comments

Comments
 (0)