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

Commit 35e37a3

Browse files
authored
Merge develop to master for ODFE 1.9.0.1 release (#633)
Merge develop to master for ODFE 1.9.0.1 release
2 parents af74293 + baac103 commit 35e37a3

File tree

274 files changed

+12716
-2071
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+12716
-2071
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# The overall template of the release notes
2+
template: |
3+
Open Distro for Elasticsearch Version $RESOLVED_VERSION
4+
$CHANGES
5+
6+
# Setting the formatting and sorting for the release notes body
7+
name-template: Version $RESOLVED_VERSION
8+
change-template: "- $TITLE (PR [#$NUMBER](https://github.com/opendistro-for-elasticsearch/sql/pull/$NUMBER))"
9+
sort-by: merged_at
10+
sort-direction: ascending
11+
12+
# Organizing the tagged PRs into categories
13+
categories:
14+
- title: "Version Upgrades"
15+
labels:
16+
- "version compatibility"
17+
- title: "SQL and PPL"
18+
labels:
19+
- "SQL"
20+
- "PPL"
21+
- title: "SQL CLI"
22+
labels:
23+
- "CLI"
24+
- title: "SQL JDBC"
25+
labels:
26+
- "JDBC"
27+
- title: "SQL ODBC"
28+
labels:
29+
- "ODBC"
30+
- title: "SQL Workbench"
31+
labels:
32+
- "Workbench"
33+
- title: "Enhancements"
34+
labels:
35+
- "enhancement"
36+
- "maintenance"
37+
- title: "Bug Fixes"
38+
labels:
39+
- "bug"
40+
- title: "Documentation"
41+
labels:
42+
- "documentation"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
update_release_draft:
10+
name: Update draft release notes
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- name: Update draft release notes
15+
uses: release-drafter/release-drafter@v5
16+
with:
17+
config-name: draft-release-notes-config.yml
18+
tag: (None)
19+
version: 1.9.0.1
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sql-odbc-main.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,16 @@ jobs:
2626
brew install curl
2727
brew install cmake
2828
brew install libiodbc
29-
- name: aws-sdk-cpp-setup
30-
run: |
31-
sh aws_sdk_cpp_setup.sh
32-
- name: configure
33-
run: |
34-
prefix_path=$(pwd)
35-
mkdir cmake-build
36-
cd cmake-build
37-
cmake ../src -DCMAKE_INSTALL_PREFIX=$prefix_path/AWSSDK/ -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="core" -DCUSTOM_MEMORY_MANAGEMENT="OFF" -DENABLE_RTTI="OFF" -DENABLE_TESTING="OFF"
38-
cd ..
39-
- name: build-driver
29+
- name: configure-and-build-driver
4030
run: |
41-
cmake --build cmake-build
31+
./build_mac_release64.sh
4232
#- name: test
4333
# run: |
4434
# bash ./run_test_runner.sh
4535
- name: build-installer
4636
if: success()
4737
run: |
48-
cd cmake-build
38+
cd cmake-build64
4939
cmake ../src
5040
make
5141
cpack .
@@ -59,7 +49,7 @@ jobs:
5949
cp ./lib64/*.dylib build
6050
cp ./lib64/*.a build
6151
cp $(ls -d bin64/* | grep -v "\.") build
62-
cp ./cmake-build/*.pkg installer
52+
cp ./cmake-build64/*.pkg installer
6353
# cp ./bin64/*.html test-output
6454
# cp ./bin64/*.log test-output
6555
- name: upload-build

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@
88

99
Open Distro for Elasticsearch enables you to extract insights out of Elasticsearch using the familiar SQL query syntax. Use aggregations, group by, and where clauses to investigate your data. Read your data as JSON documents or CSV tables so you have the flexibility to use the format that works best for you.
1010

11+
12+
## SQL Related Projects
13+
14+
The following projects have been merged into this repository as separate folders as of July 9, 2020. Please refer to links below for details. This document will focus on the SQL plugin for Elasticsearch.
15+
16+
* [SQL CLI](https://github.com/opendistro-for-elasticsearch/sql/tree/master/sql-cli)
17+
* [SQL JDBC](https://github.com/opendistro-for-elasticsearch/sql/tree/master/sql-jdbc)
18+
* [SQL ODBC](https://github.com/opendistro-for-elasticsearch/sql/tree/master/sql-odbc)
19+
* [SQL Workbench](https://github.com/opendistro-for-elasticsearch/sql/tree/master/sql-workbench)
20+
21+
1122
## Documentation
1223

1324
Please refer to the [reference manual](./docs/user/index.rst) and [technical documentation](https://opendistro.github.io/for-elasticsearch-docs) for detailed information on installing and configuring opendistro-elasticsearch-sql plugin. Looking to contribute? Read the instructions on [Development Guide](./docs/developing.rst) and then submit a patch!

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ext {
4848
}
4949

5050
allprojects {
51-
version = "${opendistroVersion}.0"
51+
version = "${opendistroVersion}.1"
5252

5353
plugins.withId('java') {
5454
sourceCompatibility = targetCompatibility = "1.8"

common/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ repositories {
99

1010
dependencies {
1111
compile "org.antlr:antlr4-runtime:4.7.1"
12-
compile group: 'com.google.guava', name: 'guava', version: '23.0'
12+
// https://github.com/google/guava/wiki/CVE-2018-10237
13+
compile group: 'com.google.guava', name: 'guava', version: '29.0-jre'
1314

1415
testCompile group: 'junit', name: 'junit', version: '4.12'
1516
}

core/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ repositories {
99
}
1010

1111
dependencies {
12-
compile group: 'com.google.guava', name: 'guava', version: '23.0'
12+
// https://github.com/google/guava/wiki/CVE-2018-10237
13+
compile group: 'com.google.guava', name: 'guava', version: '29.0-jre'
1314
compile group: 'org.springframework', name: 'spring-context', version: '5.2.5.RELEASE'
1415
compile group: 'org.springframework', name: 'spring-beans', version: '5.2.5.RELEASE'
1516
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'

core/src/main/java/com/amazon/opendistroforelasticsearch/sql/analysis/ExpressionAnalyzer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ public Expression visitEqualTo(EqualTo node, AnalysisContext context) {
7878

7979
@Override
8080
public Expression visitLiteral(Literal node, AnalysisContext context) {
81-
return DSL.literal(ExprValueUtils.fromObjectValue(node.getValue()));
81+
return DSL
82+
.literal(ExprValueUtils.fromObjectValue(node.getValue(), node.getType().getCoreType()));
8283
}
8384

8485
@Override

core/src/main/java/com/amazon/opendistroforelasticsearch/sql/ast/dsl/AstDSL.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,18 @@ public static Literal intLiteral(Integer value) {
123123
return literal(value, DataType.INTEGER);
124124
}
125125

126+
public static Literal dateLiteral(String value) {
127+
return literal(value, DataType.DATE);
128+
}
129+
130+
public static Literal timeLiteral(String value) {
131+
return literal(value, DataType.TIME);
132+
}
133+
134+
public static Literal timestampLiteral(String value) {
135+
return literal(value, DataType.TIMESTAMP);
136+
}
137+
126138
public static Literal doubleLiteral(Double value) {
127139
return literal(value, DataType.DOUBLE);
128140
}

core/src/main/java/com/amazon/opendistroforelasticsearch/sql/ast/expression/DataType.java

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,28 @@
1515

1616
package com.amazon.opendistroforelasticsearch.sql.ast.expression;
1717

18+
import com.amazon.opendistroforelasticsearch.sql.data.type.ExprCoreType;
19+
import lombok.Getter;
20+
import lombok.RequiredArgsConstructor;
21+
22+
/**
23+
* The DataType defintion in AST.
24+
* Question, could we use {@link ExprCoreType} directly in AST?
25+
*/
26+
@RequiredArgsConstructor
1827
public enum DataType {
19-
TYPE_ERROR,
20-
NULL,
28+
TYPE_ERROR(ExprCoreType.UNKNOWN),
29+
NULL(ExprCoreType.UNKNOWN),
30+
31+
INTEGER(ExprCoreType.INTEGER),
32+
DOUBLE(ExprCoreType.DOUBLE),
33+
STRING(ExprCoreType.STRING),
34+
BOOLEAN(ExprCoreType.BOOLEAN),
35+
36+
DATE(ExprCoreType.DATE),
37+
TIME(ExprCoreType.TIME),
38+
TIMESTAMP(ExprCoreType.TIMESTAMP);
2139

22-
INTEGER,
23-
DOUBLE,
24-
STRING,
25-
BOOLEAN
40+
@Getter
41+
private final ExprCoreType coreType;
2642
}

0 commit comments

Comments
 (0)