Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync our main with upstream/2.x #147

Merged
merged 65 commits into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
9210c5f
Remove duplicated png file (#865)
joshuali925 Sep 29, 2022
91abe43
Update jetty dependency, wiremock dependency, and fix associated comp…
forestmvey Sep 29, 2022
5aef2e6
Trigger build on pull request synchronize
vmmusings Sep 29, 2022
7b1574e
Add patterns and grok command (#813)
joshuali925 Sep 30, 2022
057fa44
Fix NPE with multiple queries containing DOT(.) in index name. (#870)
vmmusings Sep 30, 2022
b244f2e
Fix indentation of patterns example (#880)
joshuali925 Oct 3, 2022
c04c784
Prometheus Connector Initial Code
vmmusings Sep 30, 2022
cb1b20c
Restricted catalog name to [a-zA-Z0-9_-] characters
vmmusings Sep 30, 2022
46aa656
Update docs - missing changes for #754. (#884)
Yury-Fridlyand Oct 11, 2022
c3840b6
Adding highlight support in PPL with optional arguments and wildcard …
forestmvey Oct 11, 2022
526b973
Fix workflow and add `name` option.
Yury-Fridlyand Oct 12, 2022
2661232
initial commit for sql workbench windows and macos
derek-ho Oct 12, 2022
7a1c7ae
name files
derek-ho Oct 12, 2022
a8553f7
add groupId to pluginzip publication (#906)
penghuo Oct 12, 2022
b30d156
Update group to groupId (#908)
penghuo Oct 12, 2022
124a5c6
Fix broken links.
Yury-Fridlyand Oct 13, 2022
ef535e9
clean up code with matrix
derek-ho Oct 13, 2022
8a58eb9
forgot comma
derek-ho Oct 13, 2022
828101c
use cross env for windows and enable windows and macos ci in sql
derek-ho Oct 13, 2022
53ef534
disable integration and jacoco for windows and mac
derek-ho Oct 13, 2022
7569d6d
add gitattributes file to normalize line endings
derek-ho Oct 13, 2022
912731b
move gitattributes into appropriate folder
derek-ho Oct 13, 2022
6a6cfd6
configure line endings for windows
derek-ho Oct 13, 2022
0d016ef
fix one test file and get rid of git attributes
derek-ho Oct 14, 2022
a8709d2
disable doctest and integ test
derek-ho Oct 14, 2022
d4c9f1e
fix up tests
derek-ho Oct 17, 2022
9df2acd
fix tests and add java docs
derek-ho Oct 17, 2022
8f98fa4
revert error format
derek-ho Oct 17, 2022
7a39dcb
revert pretty format response
derek-ho Oct 17, 2022
bd8572a
revert error formatter test file
derek-ho Oct 17, 2022
a2b473b
replace carriage return with nothing
derek-ho Oct 18, 2022
a3747a3
remove windows git config
derek-ho Oct 18, 2022
4b50a01
Merge pull request #911 from Bit-Quill/fix-old-broken-links
Yury-Fridlyand Oct 18, 2022
fec1a0c
Update SQL CLI to use AWS session token. (#918)
Yury-Fridlyand Oct 19, 2022
e70df11
fix PR comments and fail test on purpose to see if upload test report…
derek-ho Oct 19, 2022
de65184
fix matrix entry
derek-ho Oct 19, 2022
a6f3ceb
remove test failure
derek-ho Oct 19, 2022
863f751
Table Function Initial Setup.
vmmusings Sep 30, 2022
3f372bb
fix up to run on right os
derek-ho Oct 20, 2022
5e24f3c
fix up indentation
derek-ho Oct 20, 2022
2c65ecb
Update version of `jackson-databind` for `sql-jdbc` only (#943)
Oct 20, 2022
9debb01
Add security policy for ml-commons library (#945)
joshuali925 Oct 20, 2022
3fbe3e4
remove env. build_args to make it cleaner
derek-ho Oct 20, 2022
1f2e881
Add `typeof` function. (#867)
Yury-Fridlyand Oct 20, 2022
05d53e7
Update JDBC driver version (#941)
Oct 20, 2022
954c072
try removing env var
derek-ho Oct 20, 2022
79f765c
remove unecessary import
derek-ho Oct 20, 2022
30a2d27
Fix result order of parse with other run time fields (#934)
joshuali925 Oct 22, 2022
bfad32c
SHOW Catalogs Implementation
vmmusings Oct 18, 2022
0699baa
Merge pull request #907 from derek-ho/enable-windows-macos
derek-ho Oct 25, 2022
66dc7b7
change condition to upload coverage for workbench
derek-ho Oct 25, 2022
f9e8e1f
Merge pull request #967 from derek-ho/always-upload-coverage
derek-ho Oct 25, 2022
2a16227
Add category_field to AD command in PPL (#952)
joshuali925 Oct 26, 2022
cacdb1b
Adding docs related to prometheus and catalog functionalities.
vmmusings Oct 25, 2022
eb08f57
AD timefield name issue (#919)
jngz-es Oct 27, 2022
f011f0d
Bump ansi-regex for workbench (#975)
joshuali925 Oct 27, 2022
ccc2230
Merge pull request #904 from Bit-Quill/fix-manual-workflow
Yury-Fridlyand Oct 27, 2022
ba97742
Removed json-smart (#978)
Oct 27, 2022
f37736f
Add take() aggregation function in PPL (#949)
joshuali925 Oct 27, 2022
b843639
SHOW CATALOGS documentation and integ tests (#977)
vmmusings Oct 27, 2022
d46b389
Add functions `PERIOD_ADD` and `PERIOD_DIFF`. (#933)
Yury-Fridlyand Oct 28, 2022
3fd53ca
Enable ignored and disabled tests (#926)
Oct 28, 2022
e3fe086
List tables/metrics using information_schema in source command. (#914)
vmmusings Oct 28, 2022
99cebe3
Update MacOS version to supported level. Updated suitable dependencie…
forestmvey Oct 28, 2022
634e2ff
Update Jackson Databind version to 2.13.4.2 (#148) (#992)
margarit-h Oct 31, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .github/workflows/bi-connectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build connectors for BI tools

on:
pull_request:
types: [opened, reopened]
push:
paths:
- 'bi-connectors/PowerBIConnector/**'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- 'main'
- '[1-9]+.[0-9x]+'
types: [opened, reopened]
push:
branches-ignore:
- 'dependabot/**'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/draft-release-notes-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Release Drafter

on:
pull_request:
types: [opened, reopened]
push:
branches:
- 'main'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Link Checker

on:
pull_request:
types: [opened, reopened]
push:
branches:
- 'main'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/sql-cli-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: SQL CLI Test and Build

on:
pull_request:
types: [opened, reopened]
push:
branches-ignore:
- 'dependabot/**'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/sql-jdbc-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: SQL JDBC Java CI

on:
pull_request:
types: [opened, reopened]
push:
branches-ignore:
- 'dependabot/**'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/sql-odbc-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: OpenSearch ODBC Driver

on:
pull_request:
types: [opened, reopened]
push:
branches-ignore:
- 'dependabot/**'
Expand All @@ -14,14 +13,15 @@ env:
CI_OUTPUT_PATH: "sql-odbc/ci-output"
ODBC_LIB_PATH: "./build/odbc/lib"
ODBC_BIN_PATH: "./build/odbc/bin"
ODBC_BUILD_PATH: "./build/odbc/build"
AWS_SDK_INSTALL_PATH: "./build/aws-sdk/install"
ODBC_BUILD_PATH: "./build/odbc/cmake"
VCPKG_X64_INSTALL_PATH: ".\\src\\vcpkg_installed\\x64-windows"
VCPKG_X86_INSTALL_PATH: ".\\src\\vcpkg_installed\\x86-windows"

# Tests are disabled (commented out) in all jobs because they are fail and/or outdated
# Keeping them for the brighten future when we can re-activate them
jobs:
build-mac:
runs-on: macos-10.15
runs-on: macos-12
defaults:
run:
working-directory: sql-odbc
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- name: build-installer
if: success()
run: |
.\scripts\build_installer.ps1 Release Win32 .\src $Env:ODBC_BUILD_PATH $Env:AWS_SDK_INSTALL_PATH
.\scripts\build_installer.ps1 Release Win32 .\src $Env:ODBC_BUILD_PATH $Env:VCPKG_X86_INSTALL_PATH
#- name: test
# run: |
# cp .\\libraries\\VisualLeakDetector\\bin32\\*.* .\\bin32\\Release
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
- name: build-installer
if: success()
run: |
.\scripts\build_installer.ps1 Release x64 .\src $Env:ODBC_BUILD_PATH $Env:AWS_SDK_INSTALL_PATH
.\scripts\build_installer.ps1 Release x64 .\src $Env:ODBC_BUILD_PATH $Env:VCPKG_X64_INSTALL_PATH
#- name: test
# run: |
# cp .\\libraries\\VisualLeakDetector\\bin64\\*.* .\\bin64\\Release
Expand Down
30 changes: 18 additions & 12 deletions .github/workflows/sql-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: SQL Java CI

on:
pull_request:
types: [opened, reopened]
push:
branches-ignore:
- 'dependabot/**'
Expand All @@ -21,25 +20,32 @@ on:
jobs:
build:
strategy:
# Run all jobs
fail-fast: false
matrix:
java:
- 11
- 17
runs-on: ubuntu-latest
entry:
- { os: ubuntu-latest, java: 11 }
- { os: windows-latest, java: 11, os_build_args: -x doctest -x integTest -x jacocoTestReport -x compileJdbc}
- { os: macos-latest, java: 11, os_build_args: -x doctest -x integTest -x jacocoTestReport -x compileJdbc }
- { os: ubuntu-latest, java: 17 }
- { os: windows-latest, java: 17, os_build_args: -x doctest -x integTest -x jacocoTestReport -x compileJdbc }
- { os: macos-latest, java: 17, os_build_args: -x doctest -x integTest -x jacocoTestReport -x compileJdbc }
runs-on: ${{ matrix.entry.os }}

steps:
- uses: actions/checkout@v3

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
java-version: ${{ matrix.entry.java }}

- name: Build with Gradle
run: ./gradlew --continue build assemble
run: ./gradlew --continue build ${{ matrix.entry.os_build_args }}

- name: Run backward compatibility tests
if: ${{ matrix.entry.os == 'ubuntu-latest' }}
run: ./scripts/bwctest.sh

- name: Create Artifact Path
Expand All @@ -49,7 +55,7 @@ jobs:

# This step uses the codecov-action Github action: https://github.com/codecov/codecov-action
- name: Upload SQL Coverage Report
if: always()
if: ${{ always() && matrix.entry.os == 'ubuntu-latest' }}
uses: codecov/codecov-action@v3
with:
flags: sql-engine
Expand All @@ -58,11 +64,11 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: opensearch-sql
name: opensearch-sql-${{ matrix.entry.os }}
path: opensearch-sql-builds

- name: Upload test reports
if: always()
if: ${{ always() && matrix.entry.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v2
with:
name: test-reports
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/sql-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: SQL Plugin Tests

on:
workflow_dispatch:
inputs:
name:
required: false
type: string

run-name:
${{ inputs.name == '' && format('{0} @ {1}', github.ref_name, github.sha) || inputs.name }}

jobs:
build:
Expand Down Expand Up @@ -64,10 +71,10 @@ jobs:

- name: Verify test results
run: |
if [[ -e failures.log ]]
if [[ -e report.log ]]
then
echo "## FAILED TESTS :facepalm::warning::bangbang:" >> $GITHUB_STEP_SUMMARY
cat failures.log >> $GITHUB_STEP_SUMMARY
cat report.log >> $GITHUB_STEP_SUMMARY
exit 1
fi

Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/sql-workbench-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: SQL Workbench Test and Build

on:
pull_request:
types: [opened, reopened]
push:
branches-ignore:
- 'dependabot/**'
Expand All @@ -17,8 +16,15 @@ env:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Enable longer filenames
if: ${{ matrix.os == 'windows-latest' }}
run: git config --system core.longpaths true

- name: Checkout Plugin
uses: actions/checkout@v3

Expand Down Expand Up @@ -52,7 +58,7 @@ jobs:
yarn test:jest --coverage

- name: Upload coverage
if: always()
if: ${{ always() && matrix.os == 'ubuntu-latest' }}
uses: codecov/codecov-action@v3
with:
flags: query-workbench
Expand All @@ -69,5 +75,6 @@ jobs:
if: always()
uses: actions/upload-artifact@v1 # can't update to v3 because upload fails
with:
name: workbench
name: workbench-${{ matrix.os }}
path: ../OpenSearch-Dashboards/plugins/workbench/build

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ gen
.DS_Store

/artifacts/
/.pid.lock
/.prom.pid.lock
3 changes: 3 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ Foundation (http://www.apache.org/).
This product includes software developed by
Joda.org (http://www.joda.org/).

This product includes software developed by
Kraken (https://github.com/thekrakken/java-grok).

This project is based on the Apache 2.0-licensed elasticsearch-sql project (https://github.com/NLPchina/elasticsearch-sql):

Copyright 2014 omershelef
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ buildscript {
opensearch_version = System.getProperty("opensearch.version", "2.4.0-SNAPSHOT")
spring_version = "5.3.22"
jackson_version = "2.13.4"
jackson_databind_version = "2.13.4.2"
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
buildVersionQualifier = System.getProperty("build.version_qualifier", "")
version_tokens = opensearch_version.tokenize('-')
Expand Down
4 changes: 4 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ dependencies {
api "org.antlr:antlr4-runtime:4.7.1"
api group: 'com.google.guava', name: 'guava', version: '31.0.1-jre'
api group: 'org.apache.logging.log4j', name: 'log4j-core', version:'2.17.1'
api group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'

testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.9.1'
testImplementation group: 'com.google.guava', name: 'guava', version: '31.0.1-jre'
testImplementation group: 'org.hamcrest', name: 'hamcrest-library', version: '2.1'
}
Loading