Skip to content

Commit 559808d

Browse files
authored
Bump clickhouse-jdbc dirver version (#56)
Bump `clickhouse-jdbc` driver to 0.9.8: * 0.6.x (`jdbc-v1`) - works well with old ClickHouse versions. In ClickHouse 25.10 `jdbc-v1` got broken ClickHouse/clickhouse-java#2636 and all queries raised an "Magic is not correct" error message. * 0.9.4 - fixes "Magic is not correct" issues, however has issue with String <-> bytea conversion `ERROR: PXF server error : Method: getBytes("bin") encountered an exception.` * 0.9.7+ - works well
1 parent d6b06bb commit 559808d

3 files changed

Lines changed: 23 additions & 8 deletions

File tree

server/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ stage-notest:
9696

9797
.PHONY: stage-jdbc-drivers
9898
stage-jdbc-drivers:
99+
rm -rfv build/stage/lib
99100
./gradlew $(PXF_GRADLE_PROPERTIES) stageJdbcDrivers
100101

101102
.PHONY: install
@@ -104,6 +105,7 @@ install-jdbc-drivers: stage-jdbc-drivers
104105
echo "ERROR: PXF_HOME is not set"; exit 2; \
105106
fi
106107
mkdir -p "$(PXF_HOME)"/lib
108+
rm -fv "$(PXF_HOME)"/lib/*.jar
107109
cp -R build/stage/lib/* "$(PXF_HOME)"/lib
108110

109111
clean:

server/pxf-jdbc-drivers/build.gradle

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
dependencies {
221
// PostgreSQL driver is used by PXF itself.
322
// Its version is defined in server/build.gradle
423

524
// Clickhouse
6-
implementation('com.clickhouse:clickhouse-jdbc:0.6.5')
7-
implementation('com.clickhouse:clickhouse-jdbc:0.6.5:http')
8-
implementation('at.yawk.lz4:lz4-java')
9-
implementation('org.apache.httpcomponents.client5:httpclient5:5.3.1') { transitive = false }
10-
implementation('org.apache.httpcomponents.core5:httpcore5:5.2.4') { transitive = false }
11-
implementation('org.apache.httpcomponents.core5:httpcore5-h2:5.2.4') { transitive = false }
12-
25+
implementation('com.clickhouse:clickhouse-jdbc:0.9.8:all') { transitive = false }
1326

1427
// DB2
1528
implementation('net.sf.jt400:jt400:11.2')

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.10.2-SNAPSHOT
1+
6.10.3-SNAPSHOT

0 commit comments

Comments
 (0)