Skip to content

Commit

Permalink
Merge main into 1.x (#473)
Browse files Browse the repository at this point in the history
* Add sql integTest script for opensearch

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Refactor readme (#148)

Signed-off-by: Chen Dai <daichen@amazon.com>

* Build against OpenSearch 1.0.0 and bump artifact version to 1.0.0.0 (#146)

* Bump OpenSearch version from rc1 to 1.0.0

Signed-off-by: Chen Dai <daichen@amazon.com>

* Rename JDBC artifact by removing -rc1

Signed-off-by: Chen Dai <daichen@amazon.com>

* Remove rc1 qualifier in build workflow

Signed-off-by: Chen Dai <daichen@amazon.com>

* Remove rc1 from build tools version

Signed-off-by: Chen Dai <daichen@amazon.com>

* Fix IT failure

Signed-off-by: Chen Dai <daichen@amazon.com>

* Rollback build tools to rc1 due to known issue

Signed-off-by: Chen Dai <daichen@amazon.com>

* Bump CLI version

Signed-off-by: Chen Dai <daichen@amazon.com>

* Bump query workbench version

Signed-off-by: Chen Dai <daichen@amazon.com>

* Build against 1.0.0

Signed-off-by: Chen Dai <daichen@amazon.com>

* Update release notes drafter

Signed-off-by: Chen Dai <daichen@amazon.com>

* Update nodejs to 10.24.1

Signed-off-by: Chen Dai <daichen@amazon.com>

* Change grammar and add UT (#150)

Signed-off-by: Chen Dai <daichen@amazon.com>

* Add release notes for OpenSearch GA (#151)

* Add release notes

Signed-off-by: Chen Dai <daichen@amazon.com>

* Change release date

Signed-off-by: Chen Dai <daichen@amazon.com>

* Add bug fixes section

Signed-off-by: Chen Dai <daichen@amazon.com>

* Add sql dashboards tests for workbench

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* [1] Fixed aws init and shutdown behaviour (#163)

* Support implicit type conversion from string to boolean (#166)

* Support implicit type conversion for bool and string

Signed-off-by: Chen Dai <daichen@amazon.com>

* Fix lucene query pushdown issue

Signed-off-by: Chen Dai <daichen@amazon.com>

* Refactor lucene query methods

Signed-off-by: Chen Dai <daichen@amazon.com>

* Refactor builtin repo methods

Signed-off-by: Chen Dai <daichen@amazon.com>

* Add comparison test

Signed-off-by: Chen Dai <daichen@amazon.com>

* Fix comparison test

Signed-off-by: Chen Dai <daichen@amazon.com>

* Add doc test for user manual

Signed-off-by: Chen Dai <daichen@amazon.com>

* Fix doc test

Signed-off-by: Chen Dai <daichen@amazon.com>

* Fix design doc link

Signed-off-by: Chen Dai <daichen@amazon.com>

* Fix RST render issue

Signed-off-by: Chen Dai <daichen@amazon.com>

* Fix cast function pushdown issue

Signed-off-by: Chen Dai <daichen@amazon.com>

* Improve javadoc for PR

Signed-off-by: Chen Dai <daichen@amazon.com>

* Upload design doc

Signed-off-by: Chen Dai <daichen@amazon.com>

* Add more user manual

Signed-off-by: Chen Dai <daichen@amazon.com>

* Add more user manual

Signed-off-by: Chen Dai <daichen@amazon.com>

* Fix doctest

Signed-off-by: Chen Dai <daichen@amazon.com>

* Support distinct count aggregation (#167)

* Support construct AggregationResponseParser during Aggregator build stage (#108)

* Support construct AggregationResponseParser during Aggregator build stage

* modify the doc

Signed-off-by: penghuo <penghuo@gmail.com>

* support distinct count aggregation

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* fixed tests

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Merge remote-tracking branch 'upstream/develop' into issue/#100

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

# Conflicts:
#	opensearch/src/main/java/org/opensearch/sql/opensearch/storage/script/aggregation/dsl/MetricAggregationBuilder.java

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* updated user doc

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Update: support only count for distinct aggregations

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Update doc; removed distinct start

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Removed unnecessary methods

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Impl stddev and variance function in SQL and PPL (#115)

* impl variance frontend and backend

* Support construct AggregationResponseParser during Aggregator build stage

* add var and varp for PPL

Signed-off-by: penghuo <penghuo@gmail.com>

* add UT

Signed-off-by: penghuo <penghuo@gmail.com>

* fix UT

Signed-off-by: penghuo <penghuo@gmail.com>

* fix doc format

Signed-off-by: penghuo <penghuo@gmail.com>

* fix doc format

Signed-off-by: penghuo <penghuo@gmail.com>

* fix the doc

Signed-off-by: penghuo <penghuo@gmail.com>

* add stddev_samp and stddev_pop

Signed-off-by: penghuo <penghuo@gmail.com>

* fix UT coverage

* address comments

Signed-off-by: penghuo <penghuo@gmail.com>

* Fix the aggregation filter missing in named aggregators (#123)

* Take the condition expression as property to the named aggregator when wrapping the delegated aggregator

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Added test case where filtered agg is not pushed down

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* modified comparison test

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* removed a comparison test and added it to aggregationIT

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* added ppl IT test cases; added window function test cases

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* moved distinct window function test cases to WindowsIT

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* added ut

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* addressed comments

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* added test cases to meet the coverage requirement

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* added test cases for distinct count map and array types

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

Co-authored-by: Peng Huo <penghuo@gmail.com>

* Support implicit type conversion from string to temporal (#171)

* Support implicit cast from string to temporal types

Signed-off-by: Chen Dai <daichen@amazon.com>

* Add comparison test

Signed-off-by: Chen Dai <daichen@amazon.com>

* Add doctest

Signed-off-by: Chen Dai <daichen@amazon.com>

* Fix doctest

Signed-off-by: Chen Dai <daichen@amazon.com>

* Add more user manual

Signed-off-by: Chen Dai <daichen@amazon.com>

* Add more user manual

Signed-off-by: Chen Dai <daichen@amazon.com>

* Fix doctest

Signed-off-by: Chen Dai <daichen@amazon.com>

* Update user manual

Signed-off-by: Chen Dai <daichen@amazon.com>

* Use externally-defined OpenSearch version when specified.

Signed-off-by: dblock <dblock@amazon.com>

* Use OpenSearch 1.1 and build snapshot by default. (#181)

Signed-off-by: dblock <dblock@amazon.com>

* Bump path-parse from 1.0.6 to 1.0.7 in /workbench (#178)

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Workbench: auto dump cypress test data, support security (#199)

* Workbench: remove curl commands in integtest.sh (#200)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Fix import path for cypress constant (#201)

* Bump version to 1.1 for Opensearch 1.1.0.0 release  (#202)

* bump workbench versions to 1.1
Signed-off-by: David Cui <davidcui@amazon.com>

* bump version to 1.1.0.0 for 1.1 release
Signed-off-by: David Cui <davidcui@amazon.com>

* add release notes for 1.1
Signed-off-by: David Cui <davidcui@amazon.com>

* bump odbc files to 1.1.0.0
Signed-off-by: David Cui <davidcui@amazon.com>

* Bump opensearch ref to 1.1 in CI (#205)

* Fix PPL request concurrency handling issue (#207)

* Downscope request to local method

Signed-off-by: Chen Dai <daichen@amazon.com>

* Fix checkstyle

Signed-off-by: Chen Dai <daichen@amazon.com>

* Removed integtest.sh. (#208)

Signed-off-by: dblock <dblock@dblock.org>

* Support match function as filter in SQL and PPL (#204)

* supported match in sql and ppl where

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* added legacy syntax in new parser

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* added integration test

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* updated user manual

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* updated user manual

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* added ppl integ test, updated ppl manual

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Changed the ODBC mac installer build platform to MacOS 10.15 from latest (#230)

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Renamed plugin helper config file to consistent name with OSD (#228)

* Update build to use public Maven repo (#225)

* Update build to use public Maven repo

Signed-off-by: Abbas Hussain <abbas_10690@yahoo.com>

* Update runner to use macos-11 for odbc builds

Signed-off-by: Abbas Hussain <abbas_10690@yahoo.com>

* Address security vulnerability CVE-2021-3795 (#231)

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Addressed security vulnerability CVE-2021-3807 (#233)

* Support ODBC compatibility with ODFE SQL (#238)

* compatible with opensearch and all versions in odfe with sql plugin

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* address comments

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Support span aggregation in query engine (#220)

* Added span in ppl; push down only

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* refined span return type

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* added unit test cases for span aggregation builder and parser

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* implemented in memory execution of span aggregation

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* checkstyle

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* enabled alias

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* added integration test

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* added unit test cases for span aggregation builder and parser

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Updated PPL user manual

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Enable DCO Workflow Check (#242)

* enable dco check

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* updated contribution doc

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Bump version to 1.1.0.1 for patch release (#253)

* Bump version to 1.1.0.1 for patch release

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Removed redundant line

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Add new protocol for visualization response format (#251)

* added viz protocol, added tests and updated user manual

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* changed version back to 1.1

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Bumps version to 1.2 (#254)

* Updates dashbquery-workbench-dashboardsoards version to 1.2. Changes the package jsons, as well as the github action workflows.

Signed-off-by: Tengda He <tengh@amazon.com>

* bump version to 1.2 changes

Signed-off-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>

* fix broken link

Signed-off-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>

* Remove unnecessary stubs

Signed-off-by: Joshua Li <joshuali925@gmail.com>

Co-authored-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>
Co-authored-by: Joshua Li <joshuali925@gmail.com>

* 1.2 release notes

Signed-off-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>

* 1.2 release notes

Signed-off-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>

* Update notice files (#269)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add support for datetime type conversion in JDBC

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Optimized type converting in DSL filters (#272)

* optimized cast in filter queries

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* added unit tests

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Update license headers for /**/ style files

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Fix and add more license headers

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add gradlew

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Remove amazon license in # and /**/ comment style files

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Remove amazon license in other files

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Remove for one more file

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add some missing licenses

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Updated PPL user manual with relevance function limitations (#283)

* update user manual on relevanc function limitations

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* update

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Update release notes for 1.2 release (#289)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Added Tableau Connector to OpenSearch SQL (#290)

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed result parsing error for boolean type (#284)

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Fixed StringIndexOutOfBoundsException issue of left and right text functions (#285)

Signed-off-by: chloe-zh <chloezh1102@gmail.com>

* Add support for codeowners to repo (#286)

Signed-off-by: Ryan Bogan <rbogan@amazon.com>

* use opensearch-py client (#306)

* use opensearch-py client

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* reformat code

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* fix doctest

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Fix query string handling for workbench (#305)

* fix line break handling for ppl

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* escape quotes in query requests

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* [sql-cli] wrap error response into exception (#309)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* added new badges, fixed links

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* added codecov for workbench

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* updated codecov flags

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* renamed workbench flag

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* updated IT link

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* updated header name

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* updated workbench header

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* updated link checker

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* Fixed issue #291 and updated the dialect for Tableau Connector (#296)

* Added Tableau Connector to OpenSearch SQL

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added CEILING and FLOOR functions

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added IFNULL function

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added Kyle's fix for ADDDATE and SUBDATE with resulting 00:00:00 being unexpectedly null

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added MIN and MAX for two string arguments

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed return type for MID function redefenitions, part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added CAST functions to convert to int or string as part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added HEXBINX and HEXBINY functions from the templace without any modifications

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fixed cast to use the OSSQL type

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added parenthesis to avoid opensearch-project/sql/issues/293

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified Timestamp conversion formula

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added comment to TimestampType

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Updated Company Name accroding to the customer's request

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated Vendor Name as well

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

Co-authored-by: Yury Fridlyand <yuryf@bitquilltech.com>
Co-authored-by: Yury-Fridlyand <88679692+Yury-Fridlyand@users.noreply.github.com>

* Type conversion (#318)

* Added Tableau Connector to OpenSearch SQL

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added CEILING and FLOOR functions

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added IFNULL function

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added Kyle's fix for ADDDATE and SUBDATE with resulting 00:00:00 being unexpectedly null

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added MIN and MAX for two string arguments

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed return type for MID function redefenitions, part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added CAST functions to convert to int or string as part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added HEXBINX and HEXBINY functions from the templace without any modifications

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fixed cast to use the OSSQL type

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added parenthesis to avoid opensearch-project/sql/issues/293

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified Timestamp conversion formula

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added comment to TimestampType

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Updated Company Name accroding to the customer's request

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated Vendor Name as well

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified the driver to recognize its support for conversion of types

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed changes from a different branch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed changes from a different branch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Made the connector convert keyword columns to string columns

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Modified integration tests to reflect support for conversion types

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed connector changes

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Change values to bitmasks

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed jdbc changes from previous commits

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed jdbc changes from previous commits

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed jdbc changes from previous commits

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

Co-authored-by: Yury Fridlyand <yuryf@bitquilltech.com>
Co-authored-by: Yury-Fridlyand <88679692+Yury-Fridlyand@users.noreply.github.com>

* Updated pbi connector (#320)

* Added Tableau Connector to OpenSearch SQL

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added CEILING and FLOOR functions

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added IFNULL function

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added Kyle's fix for ADDDATE and SUBDATE with resulting 00:00:00 being unexpectedly null

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added MIN and MAX for two string arguments

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed return type for MID function redefenitions, part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added CAST functions to convert to int or string as part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added HEXBINX and HEXBINY functions from the templace without any modifications

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fixed cast to use the OSSQL type

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added parenthesis to avoid opensearch-project/sql/issues/293

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified Timestamp conversion formula

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added comment to TimestampType

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Updated Company Name accroding to the customer's request

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated Vendor Name as well

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added few small changes to simplify connector developing and debugging

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Typo fix

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added a simple test from TDVT: case bool0 from test calcs_data (an expression test)
Some mofidication were made in the test framework to make the output more readable

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified the driver to recognize its support for conversion of types

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed changes from a different branch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed changes from a different branch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Made the connector convert keyword columns to string columns

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fix requested by PR review

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified integration tests to reflect support for conversion types

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed connector changes

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Change values to bitmasks

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Remove changes from irrelevant commits

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Remove changes from irrelevant commits

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Updated the mez file

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

Co-authored-by: Yury Fridlyand <yuryf@bitquilltech.com>
Co-authored-by: Yury-Fridlyand <88679692+Yury-Fridlyand@users.noreply.github.com>

* Add integTestRemote for sql (#327)

* Add integTestRemote for sql

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Remove unused comment

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Bump log4j to 2.15 and bump plugin to 1.2.1 (#324)

* Fix merge conflicts

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Update release notes

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Revert version bump for workbench

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Update headers (#323)

* Update headers

Signed-off-by: Lyndon Bauto <lyndonb@bitquilltech.com>

* [1] Updating installer

Signed-off-by: Lyndon Bauto <lyndonb@bitquilltech.com>

Co-authored-by: Joshua Li <joshuali925@gmail.com>

* Add backwards compatibility tests for SQL (#322)

* Add bwc tests setup

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* update setup

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Use only 1 cluster

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Use 2 clusters

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add 1.2 snapshot

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Fix test setup

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add sql bwc tests for queries and cluster settings

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add bwc test script and remove latest artifact

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Format code

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Fix indentation

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add bwc tests to CI

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Bump bwc to 1.2.1-SNAPSHOT

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Bump log4j to 2.16 and plugin to 1.2.2 (#338)

* Bump log4j to 2.16 and plugin to 1.2.2

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add release notes

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Bump bwc to 1.2.2-SNAPSHOT

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Use opensearch_version for bwc

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* added untriaged and nolabel badges

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* backporting log4j to main

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* Bump sql main to 1.3.0 (#351)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Update docs links for workbench (#352)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Upgrade to log4j 2.17.1. (#354)

Signed-off-by: dblock <dblock@amazon.com>

* Driver timestamp (#333)

* Added Tableau Connector to OpenSearch SQL

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added CEILING and FLOOR functions

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added IFNULL function

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added Kyle's fix for ADDDATE and SUBDATE with resulting 00:00:00 being unexpectedly null

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added MIN and MAX for two string arguments

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed return type for MID function redefenitions, part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added CAST functions to convert to int or string as part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added HEXBINX and HEXBINY functions from the templace without any modifications

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fixed cast to use the OSSQL type

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added parenthesis to avoid opensearch-project/sql/issues/293

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified Timestamp conversion formula

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added comment to TimestampType

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Updated Company Name accroding to the customer's request

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated Vendor Name as well

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added few small changes to simplify connector developing and debugging

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Typo fix

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added a simple test from TDVT: case bool0 from test calcs_data (an expression test)
Some mofidication were made in the test framework to make the output more readable

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified the driver to recognize its support for conversion of types

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed changes from a different branch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed changes from a different branch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Made the connector convert keyword columns to string columns

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fix requested by PR review

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified integration tests to reflect support for conversion types

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed connector changes

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Change values to bitmasks

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Add timestamp as a type for the driver

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added timestamp to SQLGetTypeInfo for the ODBC Driver

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Reverted some previous changes

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed generated test output file

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

Co-authored-by: Yury Fridlyand <yuryf@bitquilltech.com>
Co-authored-by: Yury-Fridlyand <88679692+Yury-Fridlyand@users.noreply.github.com>

* Add .whitesource configuration file

* Add TDVT test report for the Tableau JDBC connector (#355)

* Added Tableau Connector to OpenSearch SQL

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added CEILING and FLOOR functions

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added IFNULL function

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added Kyle's fix for ADDDATE and SUBDATE with resulting 00:00:00 being unexpectedly null

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added MIN and MAX for two string arguments

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed return type for MID function redefenitions, part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added CAST functions to convert to int or string as part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added HEXBINX and HEXBINY functions from the templace without any modifications

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fixed cast to use the OSSQL type

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added parenthesis to avoid opensearch-project/sql/issues/293

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified Timestamp conversion formula

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added comment to TimestampType

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Updated Company Name accroding to the customer's request

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated Vendor Name as well

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added TDVT test result and a readme file

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

Co-authored-by: Guian Gumpac <guiang@bitquilltech.com>
Co-authored-by: guiangumpac <90278068+guiangumpac@users.noreply.github.com>

* PowerBI certification changes (#349)

* Added Tableau Connector to OpenSearch SQL

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added CEILING and FLOOR functions

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added IFNULL function

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added Kyle's fix for ADDDATE and SUBDATE with resulting 00:00:00 being unexpectedly null

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added MIN and MAX for two string arguments

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed return type for MID function redefenitions, part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added CAST functions to convert to int or string as part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added HEXBINX and HEXBINY functions from the templace without any modifications

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fixed cast to use the OSSQL type

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added parenthesis to avoid opensearch-project/sql/issues/293

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified Timestamp conversion formula

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added comment to TimestampType

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Updated Company Name accroding to the customer's request

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated Vendor Name as well

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added few small changes to simplify connector developing and debugging

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Typo fix

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added a simple test from TDVT: case bool0 from test calcs_data (an expression test)
Some mofidication were made in the test framework to make the output more readable

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified the driver to recognize its support for conversion of types

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed changes from a different branch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed changes from a different branch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Made the connector convert keyword columns to string columns

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fix requested by PR review

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified integration tests to reflect support for conversion types

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed connector changes

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Change values to bitmasks

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Add timestamp as a type for the driver

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added timestamp to SQLGetTypeInfo for the ODBC Driver

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Reverted some previous changes

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed generated test output file

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Renamed SqlOdbcPBIConnector to OpenSearch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* According to AOS-248, we have to build the server address string properly:
- add http[s]:// prefix
- add port
In scope of this task 2 new fields were added to the connection dialog (port, useSSL) and the corresponding handling.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added version and disable trace output as per Microsoft's feedback

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added documentation for the OpenSearch connector

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Renamed connector markdown file to follow naming conventions

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Changed image file extention as it was not being detected by GitHub

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Updating docs according to PR #16 comments.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added GitHub actions script to build Tableau and Power BI connector. The PBI connector is being built twice with different names accroding to the Amazon's request.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* A typo fix in yml

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* A dummy commit to make GitHub Actions start the desired workflow

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Workflow fix - pack Tableau ODBC connector instead of JDBC one

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fix line endings in the workflow file

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Another dummy commit to start the desired workflow

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fix paths in the GitHub workflow

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified workflow to trigger on changes of itself

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Path fix for preparation step

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added some changes to the second PBI connector - they should differ more than in filename to make PBI distuingish them

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Renamed PBI connector files

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Moved Tableau JDBC connector to bi-connectors

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added packing Tableau JDBC connector
For all connectors added check for successful packing before publishing

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Renamed Power BI connector as "OpenSearch Project"

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Renamed output artifact

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Update SqlOdbcPBIConnector.pq according to PR review notes

Co-authored-by: Kyle Porter <kylep@bitquilltech.com>

* Update SqlOdbcPBIConnector.pq according to PR review notes

Co-authored-by: Kyle Porter <kylep@bitquilltech.com>

* Modified code that builds the server string

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fixed grammatical errors, added a docs directory, and updated the connection string options image

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed md file as it was moved to the docs directory

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed grammatical errors and updated the old power bi support document

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed extra line

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Disabled building Tableau ODBC connector, because it is not ready for shipping

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated workflow step description

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Removed packing ODBC driver for Tableau (re: 4cadfd18).
Removed Tableau ODBC driver source files since the driver is not supposed to be.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated workflow, because connector source files were renamed after merge

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Revert "Add GitHub workflow to pack BI connectors"

* Changed string replacement in the main connector file

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Script was modified according to PR comments

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Removed Tableau ODBC connector

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Merged OpenSearch-sql main to this branch and updated links as per the PR comment

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

Co-authored-by: Yury Fridlyand <yuryf@bitquilltech.com>
Co-authored-by: Yury-Fridlyand <88679692+Yury-Fridlyand@users.noreply.github.com>
Co-authored-by: Kyle Porter <kylep@bitquilltech.com>

* Support date_nanos OpenSearch field type (#360)

* Convert date_nanos to timestamp

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Use nano seconds precision for timestamp

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Update unit tests

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Update docs for date_nanos

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Bump gson and json-schema (#370)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Update release notes 1.2.4

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* added maintenance section

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* Remove jcenter in sql and jdbc (#378)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Connector limitation documentation (#366)

* Added Tableau Connector to OpenSearch SQL

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added CEILING and FLOOR functions

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added IFNULL function

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added Kyle's fix for ADDDATE and SUBDATE with resulting 00:00:00 being unexpectedly null

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added MIN and MAX for two string arguments

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed return type for MID function redefenitions, part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added CAST functions to convert to int or string as part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added HEXBINX and HEXBINY functions from the templace without any modifications

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fixed cast to use the OSSQL type

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added parenthesis to avoid opensearch-project/sql/issues/293

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified Timestamp conversion formula

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added comment to TimestampType

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Updated Company Name accroding to the customer's request

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated Vendor Name as well

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added few small changes to simplify connector developing and debugging

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Typo fix

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added a simple test from TDVT: case bool0 from test calcs_data (an expression test)
Some mofidication were made in the test framework to make the output more readable

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified the driver to recognize its support for conversion of types

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed changes from a different branch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed changes from a different branch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Made the connector convert keyword columns to string columns

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fix requested by PR review

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified integration tests to reflect support for conversion types

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed connector changes

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Change values to bitmasks

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Add timestamp as a type for the driver

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added timestamp to SQLGetTypeInfo for the ODBC Driver

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Reverted some previous changes

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed generated test output file

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Renamed SqlOdbcPBIConnector to OpenSearch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* According to AOS-248, we have to build the server address string properly:
- add http[s]:// prefix
- add port
In scope of this task 2 new fields were added to the connection dialog (port, useSSL) and the corresponding handling.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added version and disable trace output as per Microsoft's feedback

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added documentation for the OpenSearch connector

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Renamed connector markdown file to follow naming conventions

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Changed image file extention as it was not being detected by GitHub

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Updating docs according to PR #16 comments.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added GitHub actions script to build Tableau and Power BI connector. The PBI connector is being built twice with different names accroding to the Amazon's request.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* A typo fix in yml

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* A dummy commit to make GitHub Actions start the desired workflow

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Workflow fix - pack Tableau ODBC connector instead of JDBC one

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fix line endings in the workflow file

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Another dummy commit to start the desired workflow

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fix paths in the GitHub workflow

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified workflow to trigger on changes of itself

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Path fix for preparation step

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added some changes to the second PBI connector - they should differ more than in filename to make PBI distuingish them

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Renamed PBI connector files

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Moved Tableau JDBC connector to bi-connectors

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added packing Tableau JDBC connector
For all connectors added check for successful packing before publishing

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Renamed Power BI connector as "OpenSearch Project"

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Renamed output artifact

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Update SqlOdbcPBIConnector.pq according to PR review notes

Co-authored-by: Kyle Porter <kylep@bitquilltech.com>

* Update SqlOdbcPBIConnector.pq according to PR review notes

Co-authored-by: Kyle Porter <kylep@bitquilltech.com>

* Modified code that builds the server string

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fixed grammatical errors, added a docs directory, and updated the connection string options image

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed md file as it was moved to the docs directory

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed grammatical errors and updated the old power bi support document

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed extra line

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Disabled building Tableau ODBC connector, because it is not ready for shipping

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated workflow step description

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Removed packing ODBC driver for Tableau (re: 4cadfd18).
Removed Tableau ODBC driver source files since the driver is not supposed to be.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated workflow, because connector source files were renamed after merge

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Revert "Add GitHub workflow to pack BI connectors"

* Changed string replacement in the main connector file

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Script was modified according to PR comments

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added limitations and issues table to connector markdown file

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed Tableau ODBC connector

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Merged OpenSearch-sql main to this branch and updated links as per the PR comment

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added link to bug

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Made changes as per requested in the PR comments. Linked github issues to issues listed

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added changes to the OpenSearch md file

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed unused images

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

Co-authored-by: Yury Fridlyand <yuryf@bitquilltech.com>
Co-authored-by: Yury-Fridlyand <88679692+Yury-Fridlyand@users.noreply.github.com>
Co-authored-by: Kyle Porter <kylep@bitquilltech.com>

* Address msft feedback (#380)

* Added Tableau Connector to OpenSearch SQL

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added CEILING and FLOOR functions

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added IFNULL function

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added Kyle's fix for ADDDATE and SUBDATE with resulting 00:00:00 being unexpectedly null

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added MIN and MAX for two string arguments

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed return type for MID function redefenitions, part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added CAST functions to convert to int or string as part of AOS-202

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added HEXBINX and HEXBINY functions from the templace without any modifications

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fixed cast to use the OSSQL type

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added parenthesis to avoid opensearch-project/sql/issues/293

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified Timestamp conversion formula

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added comment to TimestampType

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Updated Company Name accroding to the customer's request

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated Vendor Name as well

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added few small changes to simplify connector developing and debugging

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Typo fix

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added a simple test from TDVT: case bool0 from test calcs_data (an expression test)
Some mofidication were made in the test framework to make the output more readable

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified the driver to recognize its support for conversion of types

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed changes from a different branch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed changes from a different branch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Made the connector convert keyword columns to string columns

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fix requested by PR review

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified integration tests to reflect support for conversion types

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed connector changes

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Change values to bitmasks

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Add timestamp as a type for the driver

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added timestamp to SQLGetTypeInfo for the ODBC Driver

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Reverted some previous changes

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed generated test output file

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Renamed SqlOdbcPBIConnector to OpenSearch

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* According to AOS-248, we have to build the server address string properly:
- add http[s]:// prefix
- add port
In scope of this task 2 new fields were added to the connection dialog (port, useSSL) and the corresponding handling.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added version and disable trace output as per Microsoft's feedback

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added documentation for the OpenSearch connector

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Renamed connector markdown file to follow naming conventions

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Changed image file extention as it was not being detected by GitHub

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Updating docs according to PR #16 comments.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added GitHub actions script to build Tableau and Power BI connector. The PBI connector is being built twice with different names accroding to the Amazon's request.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* A typo fix in yml

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* A dummy commit to make GitHub Actions start the desired workflow

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Workflow fix - pack Tableau ODBC connector instead of JDBC one

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fix line endings in the workflow file

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Another dummy commit to start the desired workflow

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fix paths in the GitHub workflow

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified workflow to trigger on changes of itself

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Path fix for preparation step

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added some changes to the second PBI connector - they should differ more than in filename to make PBI distuingish them

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Renamed PBI connector files

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Moved Tableau JDBC connector to bi-connectors

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added packing Tableau JDBC connector
For all connectors added check for successful packing before publishing

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Renamed Power BI connector as "OpenSearch Project"

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Renamed output artifact

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Update SqlOdbcPBIConnector.pq according to PR review notes

Co-authored-by: Kyle Porter <kylep@bitquilltech.com>

* Update SqlOdbcPBIConnector.pq according to PR review notes

Co-authored-by: Kyle Porter <kylep@bitquilltech.com>

* Modified code that builds the server string

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Fixed grammatical errors, added a docs directory, and updated the connection string options image

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed md file as it was moved to the docs directory

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed grammatical errors and updated the old power bi support document

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed extra line

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Disabled building Tableau ODBC connector, because it is not ready for shipping

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated workflow step description

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Removed packing ODBC driver for Tableau (re: 4cadfd18).
Removed Tableau ODBC driver source files since the driver is not supposed to be.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Updated workflow, because connector source files were renamed after merge

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Revert "Add GitHub workflow to pack BI connectors"

* Changed string replacement in the main connector file

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Script was modified according to PR comments

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Added limitations and issues table to connector markdown file

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed Tableau ODBC connector

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Merged OpenSearch-sql main to this branch and updated links as per the PR comment

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added link to bug

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Made changes as per requested in the PR comments. Linked github issues to issues listed

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Added changes to the OpenSearch md file

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Modified the connector and workflows to address Power BI certification feedback

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Changed m filename to AmazonOpenSearchService-ODBC

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Made further changes to address PBI feedback

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fixed github workflow

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Modified output filenames of connector workflow

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Fix workflow

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Typo fix in the fix

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

* Changed function prefixes to match connector name

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Changed DSR Handler Friendly name for Amazon OpenSearch Service connector as requested by the PBI feedback

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed -ODBC suffix as per code review comments

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Made workflow more concise and changed a variable name

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

* Removed irrelevant images

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>

Co-authored-by: Yury Fridlyand <yuryf@bitquilltech.com>
Co-authored-by: Yury-Fridlyand <88679692+Yury-Fridlyand@users.noreply.github.com>
Co-authored-by: Kyle Porter <kylep@bitquilltech.com>

* Update the README file and and a link to the iODBC (#365)

- add a link to the iODBC Driver Manager so it is easier to navigate and install the driver manger

Signed-off-by: Alina (Xi) Li <alinalbitquilltech.com>

* [SQL-CLI] set version number to 1.0.0 (#381)

* Set release version number to 1.0.0

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Rewrite span as composite aggregation. (#386)

1.rewrite span as composite aggregation instead of DateHistogram or Histogram aggregation.
2.fix issue #385.

Signed-off-by: penghuo <penghuo@gmail.com>

* Rename `opensearch-sql-cli` to `opensearch-sqlcli` to unblock release (#388)

* rename the package to opensearch-sqlcli

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* update guava package to 31.0.1-jre (#390)

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* rename package name of sql-cli from `opensearch-sqlcli` to `opensearchsql` (#392)

* rename sql-cli to opensearchsql

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* update workflow

Signed-off-by: Zhongnan Su <szhongna@amazon.com>

* Parse none type field as null instead of throw exception (#406)

Signed-off-by: penghuo <penghuo@gmail.com>

* Add how to setup aws credentials for ODBC Tableau (#394)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Jackson-databind bump to 2.12.6 (#410)

* bumping jackson-databind to 2.12.6

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* bumping jackson-core & dataformat-cbor

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* updated missed gradle files

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* updated junit & added resolutions

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* Bug Fix, disable html escape when formatting response (#412)

Signed-off-by: penghuo <penghuo@gmail.com>

* Support multiple indices in PPL and SQL (#408)

Signed-off-by: penghuo <penghuo@gmail.com>

* Revert to windows 2019 for odbc CI (#413)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Support combination of group field and span in stats command (#417)

* Support combination of group field and span in stats command

Signed-off-by: penghuo <penghuo@gmail.com>

* Support In clause in SQL and PPL (#420)

Signed-off-by: penghuo <penghuo@gmail.com>

* Add cast function to PPL (#433)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Version bump to 1.3 (#419)

Signed-off-by: Eugene Lee <eugenesk@amazon.com>

* Span expression should always be first in by list if exist (#437)

Signed-off-by: penghuo <penghuo@gmail.com>

* Add auto backport functionality for SQL (#445)

Add auto backport workflow and documentation.

Signed-off-by: David Cui <davidcui@amazon.com>

* Update backport and add auto-delete workflows (#446)

* update backport workflow and add auto delete

Signed-off-by: David Cui <davidcui@amazon.com>

* Version Bump: springframework and jackson (#443)

Signed-off-by: penghuo <penghuo@gmail.com>

* Version Bump: H2 1.x -> 2.x (#444)

Signed-off-by: penghuo <penghuo@gmail.com>

* Add CI Matrix for JDK 11 and 14 (#451)

Add default version as JDK 11 and add CI matrix for JDK 11 and 14

Signed-off-by: David Cui <davidcui@amazon.com>

* Add Certificate Validation option (#449)

Signed-off-by: Guian Gumpac <guiang@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>

Co-authored-by: Yury Fridlyand <yuryf@bitquilltech.com>
Co-authored-by: Yury-Fridlyand <88679692+Yury-Fridlyand@users.noreply.github.com>

* Treating ExpressionEvaluationException as client Error (#459)

Fixed https://github.com/opensearch-project/sql/issues/423.

* Add parse command to PPL (#411)

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Add limitation section in PPL docs (#456)

Signed-off-by: penghuo <penghuo@gmail.com>

* [Enhancement] optimize sort rewrite logic (#434)

Optimize sort rewrite logic by using first and last parameter in Composite aggregation.

Signed-off-by: penghuo <penghuo@gmail.com>

* Support ISO 8601 Format in Date Format. (#460)

Support ISO 8601 (%y-%m-%dT%TZ) in Date Formats. In order to do that we have started supporting plain characters in date format without a % in front.

Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
Co-authored-by: Chen Dai <46505291+dai-chen@users.noreply.github.com>
Co-authored-by: Lyndon Bauto <58273576+lyndonb-bq@users.noreply.github.com>
Co-authored-by: Chloe <chloezh1102@gmail.com>
Co-authored-by: Peng Huo <penghuo@gmail.com>
Co-authored-by: dblock <dblock@amazon.com>
Co-authored-by: Daniel Doubrovkine (dB.) <dblock@dblock.org>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joshua <joshuali925@gmail.com>
Co-authored-by: David Cui <53581635+davidcui1225@users.noreply.github.com>
Co-authored-by: Abbas Hussain <abbashus@amazon.com>
Co-authored-by: Tengda-He <89666799+Tengda-He@users.noreply.github.com>
Co-authored-by: Kavitha Conjeevaram Mohan <mohakavi@amazon.com>
Co-authored-by: guiangumpac <90278068+guiangumpac@users.noreply.github.com>
Co-authored-by: Anirudha (Ani) Jadhav <anirudha@nyu.edu>
Co-authored-by: Ryan Bogan <10944539+ryanbogan@users.noreply.github.com>
Co-authored-by: Zhongnan Su <szhongna@amazon.com>
C…
  • Loading branch information
1 parent 3762023 commit 5c09444
Show file tree
Hide file tree
Showing 1,669 changed files with 31,128 additions and 33,972 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This should match the owning team set up in https://github.com/orgs/opensearch-project/teams
* @opensearch-project/sql
28 changes: 28 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Backport
on:
pull_request_target:
types:
- closed
- labeled

jobs:
backport:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
name: Backport
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/github-app-token@v1.5.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780

- name: Backport
uses: VachaShah/backport@v1.1.4
with:
github_token: ${{ steps.github_app_token.outputs.token }}
branch_name: backport/backport-${{ github.event.number }}
54 changes: 54 additions & 0 deletions .github/workflows/bi-connectors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build connectors for BI tools

on:
push:
paths:
- 'bi-connectors/PowerBIConnector/**'
- 'bi-connectors/TableauConnector/**'
- '.github/workflows/bi-connectors.yml'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pack Tableau JDBC connector
id: pack-tableau-jdbc
run: |
zip -r opensearch_sql_jdbc.taco . -x *.taco
working-directory: bi-connectors/TableauConnector/opensearch_sql_jdbc
- name: Prepare Power BI ODBC connector for 'OpenSearch Project'
run: |
cp OpenSearchProject.pq OpenSearchProject.m
working-directory: bi-connectors/PowerBIConnector
- name: Pack Power BI ODBC connector
id: pack-powerbi-odbc-os-proj
run: |
zip OpenSearchProject.mez *.png *.m *.resx *.pqm
working-directory: bi-connectors/PowerBIConnector
- name: Prepare Power BI ODBC connector for 'Amazon OpenSearch Service'
id: prep-powerbi-odbc-amz-os-svc
run: |
mv OpenSearchProject.m AmazonOpenSearchService.m
sed -i 's/<value>OpenSearch Project<\/value>/<value>Amazon OpenSearch Service<\/value>/g' resources.resx
sed -i 's/OpenSearch Project/Amazon OpenSearch Service/g' AmazonOpenSearchService.m
sed -i 's/OpenSearchProject/AmazonOpenSearchService/g' AmazonOpenSearchService.m
sed -i 's/opensearchproject/amazonopensearchservice/g' AmazonOpenSearchService.m
working-directory: bi-connectors/PowerBIConnector
- name: Pack Power BI ODBC connector for 'Amazon OpenSearch Service'
id: pack-powerbi-odbc-amz-os-svc
run: |
zip AmazonOpenSearchService.mez *.png *.m *.resx *.pqm
working-directory: bi-connectors/PowerBIConnector
- name: Upload Tableau JDBC connector
if: steps.pack-tableau-jdbc.outcome == 'success'
uses: actions/upload-artifact@v2
with:
name: TableauConnectors
path: bi-connectors/TableauConnector/opensearch_sql_jdbc/opensearch_sql_jdbc.taco
- name: Upload Power BI ODBC connectors
if: steps.pack-powerbi-odbc-os-proj.outcome == 'success' || (steps.prep-powerbi-odbc-amz-os-svc.outcome == 'success' && steps.pack-powerbi-odbc-amz-os-svc.outcome == 'success')
uses: actions/upload-artifact@v2
with:
name: PBIConnectors
path: 'bi-connectors/PowerBIConnector/*.mez'
18 changes: 18 additions & 0 deletions .github/workflows/dco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Developer Certificate of Origin Check

on: [pull_request]

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Get PR Commits
id: 'get-pr-commits'
uses: tim-actions/get-pr-commits@v1.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: DCO Check
uses: tim-actions/dco@v1.1.0
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
15 changes: 15 additions & 0 deletions .github/workflows/delete_backport_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Delete merged branch of the backport PRs
on:
pull_request:
types:
- closed

jobs:
delete-branch:
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.head.ref,'backport/')
steps:
- name: Delete merged branch
uses: SvanBoxel/delete-merged-branch@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/draft-release-notes-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
with:
config-name: draft-release-notes-config.yml
tag: (None)
version: 1.1.0.0
version: 1.3.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
id: lychee
uses: lycheeverse/lychee-action@master
with:
args: --accept=200,403,429,999 "**/*.html" "**/*.md" "**/*.txt" --exclude "http://localhost*" "https://localhost" "https://odfe-node1:9200/" "https://community.tableau.com/docs/DOC-17978" ".*family.zzz" "https://pypi.python.org/pypi/opensearch-sql-cli/" "opensearch*" ".*@amazon.com" ".*email.com" "git@github.com" "http://timestamp.verisign.com/scripts/timstamp.dll"
args: --accept=200,403,429,999 "./**/*.html" "./**/*.md" "./**/*.txt" --exclude "http://localhost*" "https://localhost" "https://odfe-node1:9200/" "https://community.tableau.com/docs/DOC-17978" ".*family.zzz" "https://pypi.python.org/pypi/opensearchsql/" "opensearch*" ".*@amazon.com" ".*email.com" "git@github.com" "http://timestamp.verisign.com/scripts/timstamp.dll" ".*/PowerBIConnector/bin/Release"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Fail if there were link errors
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sql-cli-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:

- name: Create Artifact Path
run: |
mkdir -p opensearch-sql-cli-builds
cp -r ./dist/*.tar.gz ./dist/*.whl opensearch-sql-cli-builds/
mkdir -p opensearchsql-builds
cp -r ./dist/*.tar.gz ./dist/*.whl opensearchsql-builds/
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: opensearch-sql-cli
path: sql-cli/opensearch-sql-cli-builds
name: opensearchsql
path: sql-cli/opensearchsql-builds
6 changes: 3 additions & 3 deletions .github/workflows/sql-odbc-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:

jobs:
build-mac:
runs-on: macos-latest
runs-on: macos-10.15
defaults:
run:
working-directory: sql-odbc
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
# name: mac-test-results
# path: test-output
build-windows32:
runs-on: windows-latest
runs-on: windows-2019
defaults:
run:
working-directory: sql-odbc
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
# name: windows-test-results
# path: $CI_OUTPUT_PATH/test
build-windows64:
runs-on: windows-latest
runs-on: windows-2019
defaults:
run:
working-directory: sql-odbc
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sql-odbc-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ env:
ODBC_BUILD_PATH: "./build/odbc/build"
AWS_SDK_INSTALL_PATH: "./build/aws-sdk/install"
PLUGIN_NAME: opensearch-sql-odbc
OD_VERSION: 1.1.0.0
OD_VERSION: 1.3.0.0

jobs:
build-mac:
runs-on: macos-latest
runs-on: macos-10.15
defaults:
run:
working-directory: sql-odbc
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sql-odbc-rename-and-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- rename*

env:
OD_VERSION: 1.1.0.0
OD_VERSION: 1.3.0.0

jobs:
upload-odbc:
Expand Down
31 changes: 15 additions & 16 deletions .github/workflows/sql-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,31 @@ name: SQL Java CI

on: [push, pull_request]

env:
OPENSEARCH_VERSION: '1.3.0-SNAPSHOT'

jobs:
build:

strategy:
matrix:
java:
- 11
- 14
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Set up JDK 1.14
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: 1.14

# Publish OpenSearch to local Maven repo for now
- name: Checkout OpenSearch
uses: actions/checkout@v2
with:
repository: 'opensearch-project/OpenSearch'
path: OpenSearch
ref: '1.1'

- name: Build OpenSearch
working-directory: ./OpenSearch
run: ./gradlew publishToMavenLocal
java-version: ${{ matrix.java }}

- name: Build with Gradle
run: ./gradlew build assemble -Dopensearch.version=1.1.0-SNAPSHOT
run: ./gradlew build assemble -Dopensearch.version=${{ env.OPENSEARCH_VERSION }}

- name: Run backward compatibility tests
run: ./bwctest.sh

- name: Create Artifact Path
run: |
Expand All @@ -39,6 +37,7 @@ jobs:
- name: Upload SQL Coverage Report
uses: codecov/codecov-action@v1
with:
flags: sql-engine
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload Artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sql-workbench-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:

env:
PLUGIN_NAME: query-workbench-dashboards
OPENSEARCH_VERSION: '1.0'
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0
OPENSEARCH_VERSION: '1.x'
OPENSEARCH_PLUGIN_VERSION: 1.3.0.0

jobs:

Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/sql-workbench-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [pull_request, push]
env:
PLUGIN_NAME: query-workbench-dashboards
OPENSEARCH_VERSION: '1.x'
OPENSEARCH_PLUGIN_VERSION: 1.1.0.0
OPENSEARCH_PLUGIN_VERSION: 1.3.0.0

jobs:

Expand Down Expand Up @@ -43,7 +43,14 @@ jobs:
- name: Test
run: |
cd OpenSearch-Dashboards/plugins/workbench
yarn test:jest
yarn test:jest --coverage
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
flags: query-workbench
directory: ./OpenSearch-Dashboards/plugins/workbench
token: ${{ secrets.CODECOV_TOKEN }}

- name: Build Artifact
run: |
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
.project
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/bin/
bin/
/target/
log/
elasticsearch-sql.iml
Expand Down
15 changes: 15 additions & 0 deletions .whitesource
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"scanSettings": {
"configMode": "AUTO",
"configExternalURL": "",
"projectToken": "",
"baseBranches": []
},
"checkRunSettings": {
"vulnerableCheckRunConclusionLevel": "failure",
"displayMode": "diff"
},
"issueSettings": {
"minSeverityLevel": "LOW"
}
}
Loading

0 comments on commit 5c09444

Please sign in to comment.