Skip to content

Commit c6e771a

Browse files
authored
Fix nativeTest failing due to refactoring (#36264)
1 parent a996790 commit c6e771a

File tree

19 files changed

+419
-1028
lines changed

19 files changed

+419
-1028
lines changed

.github/workflows/graalvm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
run: |
5656
./test/native/src/test/resources/test-native/ps1/uninstall-docker-engine-for-wcow.ps1
5757
winget install --id jazzdelightsme.WingetPathUpdater --source winget
58-
winget install --id SUSE.RancherDesktop --source winget --skip-dependencies
58+
winget install --id SUSE.RancherDesktop --source winget
5959
rdctl start --application.start-in-background --container-engine.name=moby --kubernetes.enabled=false
6060
./test/native/src/test/resources/test-native/ps1/wait-for-rancher-desktop-backend.ps1
6161
"PATH=$env:PATH" >> $env:GITHUB_ENV

.github/workflows/nightly-ci-dynamic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
run: |
140140
./test/native/src/test/resources/test-native/ps1/uninstall-docker-engine-for-wcow.ps1
141141
winget install --id jazzdelightsme.WingetPathUpdater --source winget
142-
winget install --id SUSE.RancherDesktop --source winget --skip-dependencies
142+
winget install --id SUSE.RancherDesktop --source winget
143143
rdctl start --application.start-in-background --container-engine.name=moby --kubernetes.enabled=false
144144
./test/native/src/test/resources/test-native/ps1/wait-for-rancher-desktop-backend.ps1
145145
- uses: graalvm/setup-graalvm@v1

.github/workflows/nightly-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
run: |
119119
./test/native/src/test/resources/test-native/ps1/uninstall-docker-engine-for-wcow.ps1
120120
winget install --id jazzdelightsme.WingetPathUpdater --source winget
121-
winget install --id SUSE.RancherDesktop --source winget --skip-dependencies
121+
winget install --id SUSE.RancherDesktop --source winget
122122
rdctl start --application.start-in-background --container-engine.name=moby --kubernetes.enabled=false
123123
./test/native/src/test/resources/test-native/ps1/wait-for-rancher-desktop-backend.ps1
124124
"PATH=$env:PATH" >> $env:GITHUB_ENV

docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/_index.cn.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ Caused by: java.io.UnsupportedEncodingException: Codepage Cp1252 is not supporte
297297
</dependency>
298298
<dependency>
299299
<groupId>org.apache.shardingsphere</groupId>
300-
<artifactId>shardingsphere-parser-sql-clickhouse</artifactId>
300+
<artifactId>shardingsphere-jdbc-dialect-clickhouse</artifactId>
301301
<version>${shardingsphere.version}</version>
302302
</dependency>
303303
<dependency>
@@ -340,3 +340,7 @@ without it being registered as reachable. Add it to the resource metadata to sol
340340
com.mysql.cj.conf.ConnectionUrl.getConnectionUrlInstance(ConnectionUrl.java:291)
341341
com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:186)
342342
```
343+
344+
10. 受 `apache/calcite` 使用的 `janino-compiler/janino` 的影响,
345+
ShardingSphere 的 `SQL Federation` 功能在 GraalVM Native Image 下不可用。
346+
这同样导致 ShardingSphere Proxy Native 无法使用 OpenGauss 集成。

docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/_index.en.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ Possible configuration examples are as follows,
309309
</dependency>
310310
<dependency>
311311
<groupId>org.apache.shardingsphere</groupId>
312-
<artifactId>shardingsphere-parser-sql-clickhouse</artifactId>
312+
<artifactId>shardingsphere-jdbc-dialect-clickhouse</artifactId>
313313
<version>${shardingsphere.version}</version>
314314
</dependency>
315315
<dependency>
@@ -352,3 +352,7 @@ without it being registered as reachable. Add it to the resource metadata to sol
352352
com.mysql.cj.conf.ConnectionUrl.getConnectionUrlInstance(ConnectionUrl.java:291)
353353
com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:186)
354354
```
355+
356+
10. Due to the use of `janino-compiler/janino` by `apache/calcite`,
357+
ShardingSphere's `SQL Federation` feature is unavailable in the GraalVM Native Image.
358+
This also prevents ShardingSphere Proxy Native from integrating with OpenGauss.

infra/reachability-metadata/src/main/resources/META-INF/native-image/com.github.docker-java/docker-java-api/3.4.0/proxy-config.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)