Skip to content

Commit df32ea7

Browse files
committed
5.4.19-20241103_17309482
1 parent ca00d7f commit df32ea7

File tree

2,393 files changed

+157456
-24575
lines changed

Some content is hidden

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

2,393 files changed

+157456
-24575
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM polardbx/polardbxbasejava:20221129
1+
FROM polardbx-opensource-registry.cn-beijing.cr.aliyuncs.com/polardbx/polardbxbasejava:20221129
22

33
WORKDIR /home/admin
44

polardbx-calcite/pom.xml

Lines changed: 26 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ limitations under the License.
3939
<groupId>org.apache.calcite.avatica</groupId>
4040
<artifactId>avatica-core</artifactId>
4141
<version>${avatica.core.version}</version>
42+
<exclusions>
43+
<exclusion>
44+
<groupId>org.apache.httpcomponents</groupId>
45+
<artifactId>httpcore</artifactId>
46+
</exclusion>
47+
</exclusions>
4248
</dependency>
4349
<dependency>
4450
<groupId>org.apache.calcite</groupId>
@@ -51,11 +57,6 @@ limitations under the License.
5157
<version>${avatica-serve.version}</version>
5258
<scope>test</scope>
5359
</dependency>
54-
<dependency>
55-
<groupId>commons-dbcp</groupId>
56-
<artifactId>commons-dbcp</artifactId>
57-
<version>${commons-dbcp.version}</version>
58-
</dependency>
5960
<dependency>
6061
<groupId>org.apache.commons</groupId>
6162
<artifactId>commons-lang3</artifactId>
@@ -95,6 +96,7 @@ limitations under the License.
9596
<groupId>com.yahoo.datasketches</groupId>
9697
<artifactId>sketches-core</artifactId>
9798
<version>${sketches-core.version}</version>
99+
<scope>provided</scope>
98100
</dependency>
99101
<dependency>
100102
<groupId>junit</groupId>
@@ -164,17 +166,20 @@ limitations under the License.
164166
<version>9.3-1102-jdbc3</version>
165167
<scope>test</scope>
166168
</dependency>
167-
<dependency>
168-
<groupId>org.slf4j</groupId>
169-
<artifactId>slf4j-api</artifactId>
170-
<scope>compile</scope>
171-
</dependency>
172-
173-
<dependency>
174-
<groupId>org.slf4j</groupId>
175-
<artifactId>slf4j-log4j12</artifactId>
176-
<scope>test</scope>
177-
</dependency>
169+
170+
<dependency>
171+
<groupId>ch.qos.logback</groupId>
172+
<artifactId>logback-classic</artifactId>
173+
</dependency>
174+
<dependency>
175+
<groupId>org.slf4j</groupId>
176+
<artifactId>slf4j-api</artifactId>
177+
<version>${slf4j_version}</version>
178+
</dependency>
179+
<dependency>
180+
<groupId>org.slf4j</groupId>
181+
<artifactId>log4j-over-slf4j</artifactId>
182+
</dependency>
178183

179184
<dependency>
180185
<groupId>sqlline</groupId>
@@ -203,6 +208,11 @@ limitations under the License.
203208
<version>${mockito.verison}</version>
204209
<scope>test</scope>
205210
</dependency>
211+
<dependency>
212+
<groupId>com.alibaba.polardbx</groupId>
213+
<artifactId>polardbx-net</artifactId>
214+
<version>${parent.version}</version>
215+
</dependency>
206216
</dependencies>
207217

208218
<build>
@@ -302,24 +312,6 @@ limitations under the License.
302312
</executions>
303313
</plugin>
304314

305-
<!-- Parent module has the same plugin and does the work of
306-
generating -sources.jar for each project. But without the
307-
plugin declared here, IDEs don't know the sources are
308-
available. -->
309-
<plugin>
310-
<groupId>org.apache.maven.plugins</groupId>
311-
<artifactId>maven-source-plugin</artifactId>
312-
<executions>
313-
<execution>
314-
<id>attach-sources</id>
315-
<phase>verify</phase>
316-
<goals>
317-
<goal>jar-no-fork</goal>
318-
<goal>test-jar-no-fork</goal>
319-
</goals>
320-
</execution>
321-
</executions>
322-
</plugin>
323315
<plugin>
324316
<groupId>org.apache.maven.plugins</groupId>
325317
<artifactId>maven-dependency-plugin</artifactId>

polardbx-calcite/src/main/java/org/apache/calcite/adapter/jdbc/JdbcSchema.java

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
*/
1717
package org.apache.calcite.adapter.jdbc;
1818

19+
import com.google.common.base.Preconditions;
20+
import com.google.common.collect.ImmutableMap;
21+
import com.google.common.collect.ImmutableMultimap;
22+
import com.google.common.collect.ImmutableSet;
23+
import com.google.common.collect.Multimap;
1924
import org.apache.calcite.avatica.AvaticaUtils;
2025
import org.apache.calcite.avatica.SqlType;
2126
import org.apache.calcite.linq4j.tree.Expression;
@@ -38,12 +43,7 @@
3843
import org.apache.calcite.sql.type.SqlTypeName;
3944
import org.apache.calcite.util.Util;
4045

41-
import com.google.common.base.Preconditions;
42-
import com.google.common.collect.ImmutableMap;
43-
import com.google.common.collect.ImmutableMultimap;
44-
import com.google.common.collect.ImmutableSet;
45-
import com.google.common.collect.Multimap;
46-
46+
import javax.sql.DataSource;
4747
import java.sql.Connection;
4848
import java.sql.DatabaseMetaData;
4949
import java.sql.ResultSet;
@@ -53,7 +53,6 @@
5353
import java.util.Locale;
5454
import java.util.Map;
5555
import java.util.Set;
56-
import javax.sql.DataSource;
5756

5857
/**
5958
* Implementation of {@link Schema} that is backed by a JDBC data source.
@@ -186,12 +185,7 @@ public static SqlDialect createDialect(SqlDialectFactory dialectFactory,
186185
/** Creates a JDBC data source with the given specification. */
187186
public static DataSource dataSource(String url, String driverClassName,
188187
String username, String password) {
189-
if (url.startsWith("jdbc:hsqldb:")) {
190-
// Prevent hsqldb from screwing up java.util.logging.
191-
System.setProperty("hsqldb.reconfig_logging", "false");
192-
}
193-
return JdbcUtils.DataSourcePool.INSTANCE.get(url, driverClassName, username,
194-
password);
188+
throw new IllegalAccessError();
195189
}
196190

197191
public boolean isMutable() {

0 commit comments

Comments
 (0)