This is an automated email from the ASF dual-hosted git repository.

sunnianjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 1212d70e1c1 Block unit tests that execute 
EspressoInlineExpressionParserTest on MacOS and Windows (#30054)
1212d70e1c1 is described below

commit 1212d70e1c1b47f57e28174ff0e4790834930149
Author: Ling Hengqian <[email protected]>
AuthorDate: Wed Feb 7 20:00:48 2024 +0800

    Block unit tests that execute EspressoInlineExpressionParserTest on MacOS 
and Windows (#30054)
---
 .../content/user-manual/common-config/builtin-algorithm/expr.cn.md     | 3 +++
 .../content/user-manual/common-config/builtin-algorithm/expr.en.md     | 3 +++
 .../infra/expr/espresso/EspressoInlineExpressionParserTest.java        | 3 +++
 3 files changed, 9 insertions(+)

diff --git 
a/docs/document/content/user-manual/common-config/builtin-algorithm/expr.cn.md 
b/docs/document/content/user-manual/common-config/builtin-algorithm/expr.cn.md
index ddc72556c96..9cf3143552d 100644
--- 
a/docs/document/content/user-manual/common-config/builtin-algorithm/expr.cn.md
+++ 
b/docs/document/content/user-manual/common-config/builtin-algorithm/expr.cn.md
@@ -75,6 +75,9 @@ weight = 10
 
 此为可选实现,你需要在自有项目的 `pom.xml` 主动声明如下依赖。并且请确保自有项目通过 OpenJDK 21+ 或其下游发行版编译。
 
+由于 
https://www.graalvm.org/jdk21/reference-manual/java-on-truffle/faq/#does-java-running-on-truffle-run-on-hotspot-too
 的限制,
+当此模块在非 GraalVM Native Image 的环境中被使用时,仅在 Linux 上就绪。
+
 ```xml
 <dependencies>
     <dependency>
diff --git 
a/docs/document/content/user-manual/common-config/builtin-algorithm/expr.en.md 
b/docs/document/content/user-manual/common-config/builtin-algorithm/expr.en.md
index 4b9bf2fa800..fafb948357a 100644
--- 
a/docs/document/content/user-manual/common-config/builtin-algorithm/expr.en.md
+++ 
b/docs/document/content/user-manual/common-config/builtin-algorithm/expr.en.md
@@ -85,6 +85,9 @@ Example:
 This is an optional implementation. You need to actively declare the following 
dependencies in the `pom.xml` of your own project. 
 And please make sure your own projects are compiled with OpenJDK 21+ or its 
downstream distribution.
 
+Due to the limitations of 
https://www.graalvm.org/jdk21/reference-manual/java-on-truffle/faq/#does-java-running-on-truffle-run-on-hotspot-too
 , 
+this module is only ready on Linux when used in environments other than 
GraalVM Native Image.
+
 ```xml
 <dependencies>
     <dependency>
diff --git 
a/infra/expr/type/espresso/src/test/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParserTest.java
 
b/infra/expr/type/espresso/src/test/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParserTest.java
index 23ec5eaa2fd..55694206969 100644
--- 
a/infra/expr/type/espresso/src/test/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParserTest.java
+++ 
b/infra/expr/type/espresso/src/test/java/org/apache/shardingsphere/infra/expr/espresso/EspressoInlineExpressionParserTest.java
@@ -22,7 +22,9 @@ import 
org.apache.shardingsphere.infra.spi.type.typed.TypedSPILoader;
 import org.apache.shardingsphere.test.util.PropertiesBuilder;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.condition.EnabledForJreRange;
+import org.junit.jupiter.api.condition.EnabledOnOs;
 import org.junit.jupiter.api.condition.JRE;
+import org.junit.jupiter.api.condition.OS;
 
 import java.util.Collections;
 import java.util.LinkedHashMap;
@@ -35,6 +37,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 
 @EnabledForJreRange(min = JRE.JAVA_21)
+@EnabledOnOs(value = OS.LINUX, disabledReason = "Refer to 
https://www.graalvm.org/jdk21/reference-manual/java-on-truffle/faq/#does-java-running-on-truffle-run-on-hotspot-too
 .")
 class EspressoInlineExpressionParserTest {
     
     @Test

Reply via email to