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

Master 2 #4

Merged
merged 141 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
cac2ffa
[CALCITE-4476] DateTimeUtils.timeStringToUnixDate may produce wrong t…
devozerov Jan 25, 2021
ba20936
[CALCITE-3401] Assume empty keystore passwords by default (Istvan Tot…
stoty Oct 11, 2019
f93e72b
[CALCITE-3881] DateTimeUtils.addMonths yields incorrect results (Zhen…
docete Mar 27, 2020
783571f
[CALCITE-3163] Incorrect mapping of JDBC float/real array types to Ja…
Jul 1, 2019
efbf8a6
Improve test coverage for float/real/double array types (Alessandro S…
asolimando Feb 20, 2021
89e0deb
Replace AssertTestUtils with custom Hamcrest matcher for accessors co…
zabetak Feb 26, 2021
9e37120
[CALCITE-4503] Order of fields in records should follow that of the S…
asolimando Feb 6, 2021
5d7ee56
Upgrade Gradle docker containers to 6.8
F21 Apr 7, 2021
9486557
[CALCITE-4488] Prepare for Avatica 1.18.0 release
F21 Apr 7, 2021
e120301
[CALCITE-4575] Remove Gradle wrapper from source distribution
julianhyde May 11, 2021
1786676
[CALCITE-4576] Release process should not overwrite LICENSE file
julianhyde May 12, 2021
a7cfca4
Update release history for 1.18.0 rc1
F21 May 12, 2021
abe2d1e
Update website for Avatica 1.18.0 release
F21 May 18, 2021
92c425a
Bump javadoc compilation gradle image to 6.8
F21 May 18, 2021
e4f22c3
Site: Remove nowadays redundant minified javascript files
zabetak Jun 4, 2021
ed45a8d
[CALCITE-4676] Avatica client leaks TCP connections
stoty Jul 6, 2021
945d06c
[CALCITE-4646] Bump Jetty version to 9.4.42.v20210604 (Istvan Toth)
stoty Jun 11, 2021
784f860
[CALCITE-4752] PreparedStatement#SetObject() fails for BigDecimal values
stoty Aug 26, 2021
5452f66
[CALCITE-4755] Prepare for next development iteration (Istvan Toth)
stoty Aug 27, 2021
36574ef
[CALCITE-4536] Add support for BIT data type (Zeng Rui)
zengruios May 9, 2021
0574db6
[CALCITE-4767] Add Quoting.BACK_TICK_BACKSLASH (Jack Scott)
Sep 15, 2021
ab45dc0
[CALCITE-4757] Allow columns of type Null in ResultSet (NobiGo)
NobiGo Aug 28, 2021
951b21e
[CALCITE-4815] Enforce shaded artifacts include checker-qual 3.10.0 o…
vlsi Oct 1, 2021
d32bd60
[CALCITE-4790] Make Gradle pass the 'user.timezone' property to the t…
asolimando Sep 30, 2021
d330f9e
Upgrade forbiddenapis 2.7 -> 3.2, and Guava to 14.0.1 -> 31.0.1-jre
julianhyde Sep 30, 2021
820edf6
[CALCITE-4600] ClassCastException retrieving from an ARRAY that has D…
snuyanzin May 10, 2021
d88f91a
[CALCITE-4602] ClassCastException retrieving from ARRAY that has mixe…
snuyanzin May 11, 2021
8ec334f
[CALCITE-4626] Upgrade protobuf version to 3.17.1 to remove com.googl…
amannm May 29, 2021
03e69d2
[CALCITE-4573] NullPointerException while fetching from a column of t…
chenyuzhi459 Apr 9, 2021
d9f4374
[CALCITE-4797] Release Avatica 1.19.0
julianhyde Oct 3, 2021
ef277ff
Update website for Avatica 1.19.0 release
julianhyde Oct 9, 2021
e462b09
[CALCITE-4837] FLOOR/CEIL for DECADE, CENTURY, MILLENIUM return wrong…
snuyanzin Oct 7, 2021
95c1eb0
[CALCITE-4828] Standard exception console output
NobiGo Oct 19, 2021
c3a9192
[CALCITE-4152] Upgrade Avatica to use the configurable SPNEGO Jetty i…
joshelser Jan 1, 2021
57c254f
[CALCITE-4840] Make README easier to scan
jacques-n Oct 8, 2021
434cf00
[CALCITE-4877] Make the exception information more explicit for insta…
Nov 6, 2021
4cf769f
Disable Travis job that uses Calcite master until [CALCITE-4877] is f…
julianhyde Nov 9, 2021
8f1d957
[CALCITE-4931] Upgrade SLF4J binding to Log4j2 version 2.15.0
zabetak Dec 11, 2021
8f83775
[CALCITE-4933] Release Avatica 1.20.0
julianhyde Dec 11, 2021
d7e1085
Update website for Avatica 1.20.0 release
julianhyde Dec 13, 2021
c6a819a
Silence standard out messages in tests
zabetak Dec 13, 2021
3555474
[CALCITE-4940] Upgrade log4j2 version to 2.16.0
zabetak Dec 14, 2021
8a20480
[CALCITE-4951] Upgrade log4j2 version to 2.17.0
zabetak Dec 18, 2021
fe27e50
Site: Change the javadoc title to Apache Calcite Avatica API
NobiGo Dec 31, 2021
e9d14a6
[CALCITE-4962] Protobuf debug does not show request/response type
marcobjorge Dec 23, 2021
fbdcc62
[CALCITE-4974] Upgrade log4j2 version to 2.17.1
zabetak Jan 4, 2022
387f87a
[CALCITE-5070] Upgrade Jekyll and ruby gems for site generation
F21 Mar 29, 2022
b9aa1fb
[CALCITE-3129] Automate website builds
F21 Mar 30, 2022
cb2cb81
[CALCITE-5075] Build fails due to rat check on Gemfile.lock
F21 Apr 1, 2022
a7baa3b
Add Apache license header to website publication Github workflows
F21 Apr 1, 2022
9ddb937
[CALCITE-5009] Transparent JDBC connection re-creation may lead to da…
stoty Mar 29, 2022
7965233
[CALCITE-4971] Update httpclient and httpcore to latest 5.1 release
stoty Apr 5, 2022
f48dbc8
[CALCITE-5098] Migrate Avatica to Gradle 7.4.2, and support Java 16 a…
julianhyde Apr 19, 2022
3281f2b
[CALCITE-5103] Update docker-compose.yml files to use OpenJDK 17 and …
F21 Apr 19, 2022
909e92e
[CALCITE-5102] Update github-pages gem for site build
michaelmior Apr 19, 2022
6de8d79
Comment out release notes for next release, so that they don't appear…
julianhyde Apr 20, 2022
5fcd09f
Add instructions for release managers to uncomment commented out rele…
F21 Apr 20, 2022
e255f02
Fix formatting in howto
F21 Apr 21, 2022
7e168f2
[CALCITE-5106] Upgrade to Jekyll 4 and remove unnecessary dependencie…
F21 Apr 21, 2022
7f9844c
[CALCITE-5108] Make website GDPR-compliant
F21 Apr 22, 2022
1f0f0c1
[CALCITE-4147] Rename "master" branch to "main"
michaelmior Jul 29, 2020
05658fe
[CALCITE-5116] Upgrade vlsi-release-plugins to 1.78
F21 Apr 27, 2022
360c0e7
[CALCITE-5095] Support Java 18 and Guava 31.1-jre
libenchao Apr 20, 2022
0883262
[CALCITE-5097] Release Avatica 1.21.0
F21 May 4, 2022
bad14c7
Update website for Avatica 1.21.0 release
F21 May 8, 2022
aad227f
Checkout release svn repository when promoting a release using the do…
F21 May 8, 2022
0c097b6
[CALCITE-5218] Verify HTTP client class before instantiating it
rubenada Jul 26, 2022
71fc0ab
[CALCITE-5220] Release Avatica 1.22
F21 Jul 26, 2022
354eaf1
Update website for Avatica 1.22 release
F21 Jul 28, 2022
2485639
[CALCITE-5232] Upgrade protobuf-java from 3.17.1 to 3.21.5
julianhyde Aug 11, 2022
a111295
Prepare for next development iteration
julianhyde Sep 22, 2022
e47b43e
[CALCITE-1639] TIMESTAMPADD(MONTH, ...) should return last day of mon…
binmahone Oct 19, 2022
e2ba4a7
[CALCITE-5338] In DateTimeUtils, deprecate floorMod and floorDiv, and…
julianhyde Oct 19, 2022
74a7364
[CALCITE-4900] NullPointerException when send ExectuteRequest via pro…
Logioniz Nov 24, 2021
af0e9e4
[CALCITE-5257] NVARCHAR is treated as 'UNKNOWN TYPE' when searching O…
ILuffZhe Sep 3, 2022
0ea5d4f
[CALCITE-3078] Move public lastDay method from Calcite to Avatica
zabetak Oct 23, 2022
644d821
[CALCITE-5295] Read the values of plugins (such as connect string pro…
julianhyde Sep 21, 2022
c17f489
[CALCITE-5344] Migrate Travis CI configuration to Github Actions
F21 Oct 25, 2022
9f4557c
[CALCITE-5327] Make SSL key-store type configurable
Oct 26, 2022
4cee172
[CALCITE-5329] Upgrade Checkstyle version from 6.18 to 10.3.2
Nov 3, 2022
d266bcb
[CALCITE-5372] Upgrade vlsi-release-plugins to 1.84
F21 Nov 8, 2022
bc28578
[CALCITE-5358] Add in HTTP_BAD_REQUEST
olivrlee Nov 2, 2022
d9a2e10
[CALCITE-5369] In Avatica DateTimeUtils, add support for FLOOR and CE…
julianhyde Nov 7, 2022
8d5eb14
[CALCITE-5353] Document new procedure for requesting JIRA accounts an…
F21 Oct 31, 2022
00c6053
[CALCITE-5373] Upgrade bouncycastle to 1.70
snuyanzin Nov 9, 2022
1eb58d9
[CALCITE-5379] Upgrade protobuf to 3.21.9
snuyanzin Nov 12, 2022
42f53ff
[CALCITE-5374] Upgrade jackson from 2.10.0 to 2.14.1
snuyanzin Nov 9, 2022
dcc0ff3
[CALCITE-5415] In ByteString, add 'startsWith' and 'endsWith' methods
julianhyde Dec 2, 2022
5047b56
[CALCITE-2322] Support fetch size in connection url and JDBC statement
kminder May 23, 2018
dbe9b1d
[CALCITE-2989] Use ISO calendar when converting between java.sql type…
Nov 15, 2022
2b6da3b
[CALCITE-5438] Document transparent_reconnection property
stoty Dec 16, 2022
224e3dd
[CALCITE-5065] Update phoenixdb information on website
stoty Dec 16, 2022
e197a35
[CALCITE-5453] Add tests for fetch size configuration via connection …
zabetak Dec 16, 2022
20b917c
[CALCITE-5458] Label and link pull requests with JIRA issues automati…
zabetak Dec 24, 2022
ac47eb6
[CALCITE-5120] UnregisteredDriver#connect should throw SQLException, …
zoudan Jan 9, 2023
810acf8
[CALCITE-3557] ResultSet.getObject throws ClassCastException when app…
JiajunBernoulli Apr 23, 2022
02c5fa1
[CALCITE-5443] After Statement.getMoreResults() has returned false, S…
Dec 19, 2022
fab0354
[CALCITE-5480] Release Avatica 1.23.0
julianhyde Jan 15, 2023
aace912
Prepare for next development iteration
julianhyde Jan 19, 2023
b57eb7c
[CALCITE-5494] Time zone tests in DateTimeUtilsTest should pass in Eu…
Jan 24, 2023
d49794a
[CALCITE-5440][avatica] Bump gradle from 7.4.2 to 7.6.1
snuyanzin Mar 12, 2023
eca36bd
Bump forbidden apis from 3.2 to 3.4
snuyanzin Mar 15, 2023
92edd93
[CALCITE-5567] Update mockito from 4.4.0 to 4.11.0 and enable jdk19
snuyanzin Mar 14, 2023
05e07c1
[CALCITE-5678] Validate date, time and timestamp literals per ISO-8601
zstan Apr 27, 2023
17e2f48
[CALCITE-5581] Implement Basic client side load balancing in Avatica …
vaijosh Mar 21, 2023
fc6ce0c
[CALCITE-5803] Migrate Avatica to Gradle 8.1.1
Jun 22, 2023
be8b99a
[CALCITE-5812] Gradle tasks fails when creating the javadoc aggregation
Jun 30, 2023
c14bcdd
[CALCITE-5804] Upgrade jackson version from 2.14.1 to 2.15.2
Jun 30, 2023
2736c27
[CALCITE-5748] Support Guava 32.1.1-jre
snuyanzin Jun 3, 2023
db4cd70
[CALCITE-5890] Handle non-JKS truststores in Avatica client
stoty Aug 3, 2023
247fecd
[CALCITE-5981] TIMESTAMPDIFF function returns incorrect result
mihaibudiu Sep 7, 2023
519d1ce
[CALCITE-6034] Add isAutoIncrement and isGenerated args to MetaColumn…
tjbanghart Mar 20, 2023
ed9e218
[CALCITE-6106] Switch from gradle to eclipse-temurin image for avatic…
F21 Nov 11, 2023
0f9d2de
[CALCITE-6107] Upgrade vlsi-release-plugins to 1.90
F21 Nov 11, 2023
f106ce2
[CALCITE-5536] Clean up some of the magic numbers in AvaticaResultSet…
wnob Feb 15, 2023
6b58d45
[CALCITE-6113] Update HttpComponents Core to 5.2.3 and HttpComponents…
stoty Nov 13, 2023
7952761
Use eclipse-temurin:8 images
F21 Nov 24, 2023
2ba10bd
Install svn in docker release script
F21 Nov 26, 2023
c0e0c35
Install svn when using docker release script to promote release
F21 Nov 28, 2023
31bb4fa
[CALCITE-6141] Add `jdk8.checkstyle` property, use `jdk8.checkstyle` …
snuyanzin Nov 27, 2023
4c0999b
[CALCITE-6057] Release Avatica 1.24.0
F21 Nov 28, 2023
538ae64
Prepare for next development iteration
F21 Dec 3, 2023
78c5f54
Install git and set safe.directory when using docker release script t…
F21 Dec 3, 2023
07c6b8d
[CALCITE-6212] Config locale = en_US for javadoc task
libenchao Jan 19, 2024
178ff82
Add Calcite CLI tool to list of Avatica Clients on website
satyakommula96 Feb 5, 2024
bc7ba9e
Disable JIRA worklog notifications for GitHub PRs
libenchao Feb 26, 2024
275a082
[CALCITE-6280] Jetty version number leaked by Avatica http server
vaijosh Feb 26, 2024
52561cc
Pull latest from Apache avatica
vijayjogi-dm Mar 4, 2024
4b9c823
[CALCITE-6209] Long queries are failing with "java.net.SocketTimeoutE…
stoty Jan 22, 2024
c12c3a3
Apply same vcs.xml as for Calcite
snuyanzin Mar 16, 2023
ef9a5a6
[CALCITE-6137] Upgrade Gradle from 8.1.1 to 8.4, support jdk21
snuyanzin Nov 27, 2023
8c36e01
[CALCITE-6282] Avatica ignores time precision when returning TIME res…
mihaibudiu Feb 25, 2024
c0cb4b7
[CALCITE-6248] Illegal dates are accepted by casts
mihaibudiu Mar 24, 2024
62b0fdd
[CALCITE-6334] Release Avatica 1.25.0
F21 Apr 2, 2024
8005b60
Prepare for next development iteration
F21 Apr 5, 2024
1cf57a8
[CALCITE-6351] Update LICENSE for Jekyll website template
F21 Apr 5, 2024
7bd1877
[CALCITE-6354] Use gradle docker image when running tests using docke…
F21 Apr 5, 2024
0a7fffe
[CALCITE-6359] Update GitHub Actions workflows to use docker compose v2
F21 Apr 10, 2024
41e2308
Bump rexml from 3.2.5 to 3.2.8 in /site
dependabot[bot] May 16, 2024
b676352
[CALCITE-6421] Add support for JDK 22
snuyanzin May 26, 2024
edd5ebf
Merge branch 'main' of https://github.com/apache/calcite-avatica into…
vijayjogi-dm Jun 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

github:
description: "Apache Calcite Avatica"
homepage: https://calcite.apache.org/avatica/
features:
wiki: false
issues: false
projects: false
enabled_merge_buttons:
# "squash and merge" replaces committer with noreply@github, and we don't want that
# See https://lists.apache.org/thread/vxxpt1x316kjryb4dptsbs95p66d9xrv
squash: false
# We prefer linear history, so creating merge commits is disabled in UI
merge: false
rebase: true
notifications:
commits: [email protected]
issues: [email protected]
pullrequests: [email protected]
jira_options: link label
2 changes: 1 addition & 1 deletion .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ jobs:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
170 changes: 156 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,49 +31,191 @@ jobs:
name: 'Windows (JDK 11)'
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Set up JDK 11'
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- name: 'Test'
shell: cmd
run: |
./gradlew --no-parallel --no-daemon build javadoc

linux-avatica:
name: 'Linux (JDK 8), Avatica master'
linux-jdk8:
name: 'Linux (JDK 8)'
runs-on: ubuntu-latest
steps:
- name: 'Set up JDK 8'
uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'zulu'
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon tasks build javadoc

linux-jdk8-avatica:
name: 'Linux (JDK 8), Avatica main'
runs-on: ubuntu-latest
steps:
- name: 'Set up JDK 8'
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 8
- uses: actions/checkout@v2
distribution: 'zulu'
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Install Avatica to Maven Local'
run: |
./gradlew publishToMavenLocal -Pcalcite.avatica.version=1.0.0-dev-master -PskipJavadoc
./gradlew publishToMavenLocal -Pcalcite.avatica.version=1.0.0-dev-main -PskipJavadoc
- name: 'Test Calcite'
run: |
git clone --depth 100 https://github.com/apache/calcite.git ../calcite
cd ../calcite
./gradlew --no-parallel --no-daemon build -Pcalcite.avatica.version=1.0.0-dev-master-SNAPSHOT -PenableMavenLocal
./gradlew --no-parallel --no-daemon build -Pcalcite.avatica.version=1.0.0-dev-main-SNAPSHOT -PenableMavenLocal

linux-jdk11-oldest-guava-tz:
name: 'Linux (JDK 11), Oldest Guava, Pacific/Chatham Timezone'
runs-on: ubuntu-latest
env:
GUAVA: 14.0.1 # oldest supported Guava version
TZ: Pacific/Chatham # flips between +12:45 and +13:45
steps:
- name: 'Set up JDK 11'
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon -Pguava.version=${GUAVA:-14.0.1} build

linux-jdk11-minimum-guava-tz:
name: 'Linux (JDK 11), Calcite Minimum Guava, America/New_York Timezone'
runs-on: ubuntu-latest
env:
GUAVA: '19.0' # Calcite's minimum Guava version
TZ: America/New_York # flips between −05:00 and −04:00
steps:
- name: 'Set up JDK 11'
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon -Pguava.version=${GUAVA:-14.0.1} tasks build

linux-jdk11-middle-aged-guava:
name: 'Linux (JDK 11), Middle-Aged Guava'
runs-on: ubuntu-latest
env:
GUAVA: '23.0' # a middle-aged Guava version
steps:
- name: 'Set up JDK 11'
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Test'
run: |
# Disable getLicenses for Guava 22..29 because of [CALCITE-4815]
./gradlew --no-parallel --no-daemon -Pguava.version=${GUAVA:-14.0.1} build -x :standalone-server:licenseCopySpec -x :standalone-server:getLicenses -x :standalone-server:license -x :tck:licenseCopySpec -x :tck:getLicenses -x :tck:license

linux-jdk11-newest-guava:
name: 'Linux (JDK 11), Newest Guava'
runs-on: ubuntu-latest
env:
GUAVA: 32.1.1-jre # newest supported Guava version
steps:
- name: 'Set up JDK 11'
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon -Pguava.version=${GUAVA:-14.0.1} build

linux-jdk17:
name: 'Linux (JDK 17)'
runs-on: ubuntu-latest
steps:
- name: 'Set up JDK 17'
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon build javadoc

linux-jdk21:
name: 'Linux (JDK 21)'
runs-on: ubuntu-latest
steps:
- name: 'Set up JDK 21'
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'zulu'
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon build

mac:
name: 'macOS (JDK 14)'
name: 'macOS (JDK 21)'
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Set up JDK 14'
uses: actions/setup-java@v1
- name: 'Set up JDK 21'
uses: actions/setup-java@v4
with:
java-version: 14
java-version: 21
distribution: 'zulu'
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon build javadoc
./gradlew --no-parallel --no-daemon tasks build javadoc

linux-jdk22:
name: 'Linux (JDK 22)'
runs-on: ubuntu-latest
steps:
- name: 'Set up JDK 22'
uses: actions/setup-java@v4
with:
java-version: 22
distribution: 'zulu'
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Test'
run: |
./gradlew --no-parallel --no-daemon build
58 changes: 58 additions & 0 deletions .github/workflows/publish-non-release-website-updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to you under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: Publish non-release website updates

on:
push:
branches:
- main
paths:
- 'site/**' # Trigger only for changes to files in the site/ folder
- '!site/_docs/**' # except for files in the site/_docs/ folder
- 'site/_docs/docker_images.md' # unless the file is site/_docs/docker_images.md
- 'site/_docs/history.md' # or site/_docs/history.md
- 'site/_docs/howto.md' # or site/_docs/howto.md
- 'site/_docs/index.md' # or site/_docs/index.md

jobs:
publish-website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build site
working-directory: site
run: |
docker compose run -e JEKYLL_UID=$(id -u) -e JEKYLL_GID=$(id -g) build-site
- uses: actions/checkout@v4
with:
repository: apache/calcite-site
path: calcite-site
token: ${{ secrets.CALCITE_WEBSITE_BUILD }}
- name: Publish site
working-directory: calcite-site
run: |
git config user.email ${{ github.actor }}@users.noreply.github.com
git config user.name ${{ github.actor }}
rm -rf avatica/
mv ../site/target/avatica/ .
git reset -- avatica/javadocAggregate/ # Restore the avatica javadoc
git checkout -- avatica/javadocAggregate/
git add .
if ! git diff-index --quiet HEAD; then
git commit -m "Website deployed from calcite-avatica@$GITHUB_SHA"
git push origin main
fi
53 changes: 53 additions & 0 deletions .github/workflows/publish-site-and-javadocs-on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to you under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: Publish website on release

on:
push:
tags:
- rel/avatica-[0-9]+.[0-9]+.[0-9]+ # Trigger only when the tag matches rel/avatica-X.Y.Z

jobs:
publish-website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build site
working-directory: site
run: |
docker compose run -e JEKYLL_UID=$(id -u) -e JEKYLL_GID=$(id -g) build-site
- name: Build javadoc
working-directory: site
run: |
docker compose run generate-javadoc
- uses: actions/checkout@v4
with:
repository: apache/calcite-site
path: calcite-site
token: ${{ secrets.CALCITE_WEBSITE_BUILD }}
- name: Publish site
working-directory: calcite-site
run: |
git config user.email ${{ github.actor }}@users.noreply.github.com
git config user.name ${{ github.actor }}
rm -rf avatica/
mv ../site/target/avatica/ .
git add .
if ! git diff-index --quiet HEAD; then
git commit -m "Website deployed from calcite-avatica@$GITHUB_SHA"
git push origin main
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
**/.editorconfig
*~
/.idea
!/.idea/vcs.xml
*.iml
settings.xml
.classpath.txt
Expand Down
27 changes: 27 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading