You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "liujinhui1994 (via GitHub)" <gi...@apache.org> on 2025/08/20 08:59:28 UTC

[PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

liujinhui1994 opened a new pull request, #8213:
URL: https://github.com/apache/gravitino/pull/8213

   <!--
   1. Title: [#<issue>] <type>(<scope>): <subject>
      Examples:
        - "[#123] feat(operator): support xxx"
        - "[#233] fix: check null before access result in xxx"
        - "[MINOR] refactor: fix typo in variable name"
        - "[MINOR] docs: fix typo in README"
        - "[#255] test: fix flaky test NameOfTheTest"
      Reference: https://www.conventionalcommits.org/en/v1.0.0/
   2. If the PR is unfinished, please mark this PR as draft.
   -->
   
   ### What changes were proposed in this pull request?
   
   (Please outline the changes and how this PR fixes the issue.)
   
   ### Why are the changes needed?
   
   (Please clarify why the changes are needed. For instance,
     1. If you propose a new API, clarify the use case for a new API.
     2. If you fix a bug, describe the bug.)
   
   Fix: #(issue)
   
   ### Does this PR introduce _any_ user-facing change?
   
   (Please list the user-facing changes introduced by your change, including
     1. Change in user-facing APIs.
     2. Addition or removal of property keys.)
   
   ### How was this patch tested?
   
   (Please test your changes, and provide instructions on how to test it:
     1. If you add a feature or fix a bug, add a test to cover your changes.
     2. If you fix a flaky test, repeat it for many times to prove it works.)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on PR #8213:
URL: https://github.com/apache/gravitino/pull/8213#issuecomment-3274219072

   The JVM is coredumped when running spark 3.3 test, I could run the test successfully in local enviroment.
   
   ```
   # A fatal error has been detected by the Java Runtime Environment:
   #
   #  SIGSEGV (0xb) at pc=0x00007efe392b4625, pid=6015, tid=6020
   #
   # JRE version: OpenJDK Runtime Environment Temurin-17.0.16+8 (17.0.16+8) (build 17.0.16+8)
   # Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.16+8 (17.0.16+8, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
   # Problematic frame:
   # V  [libjvm.so+0x8b4625]  jni_SetStaticIntField+0xb5
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #8213:
URL: https://github.com/apache/gravitino/pull/8213#discussion_r2347785057


##########
docs/spark-connector/spark-catalog-paimon.md:
##########
@@ -5,7 +5,7 @@ keyword: spark connector paimon catalog
 license: "This software is licensed under the Apache License version 2."
 ---
 
-The Apache Gravitino Spark connector offers the capability to read and write Paimon tables, with the metadata managed by the Gravitino server. To enable the use of the Paimon catalog within the Spark connector now, you must set download [Paimon Spark runtime jar](https://paimon.apache.org/docs/0.8/spark/quick-start/#preparation) to Spark classpath.
+The Apache Gravitino Spark connector offers the capability to read and write Paimon tables, with the metadata managed by the Gravitino server. To enable the use of the Paimon catalog within the Spark connector now, you must set the configuration `spark.sql.gravitino.enablePaimonSupport` to `true` and download [Paimon Spark runtime jar](https://paimon.apache.org/docs/1.2/spark/quick-start/#preparation) to Spark classpath.

Review Comment:
   To control whether to inject Paimon Spark extensions into Spark,  changing the behavior to not register paimon catalog without enabling `enablePaimonSupport` to make the behavior more clear.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #8213:
URL: https://github.com/apache/gravitino/pull/8213#discussion_r2343058761


##########
build.gradle.kts:
##########
@@ -244,6 +244,31 @@ nexusPublishing {
   packageGroup.set("org.apache.gravitino")
 }
 
+fun configureSparkConnectorExcludes(project: Project) {

Review Comment:
   Can you please figure out a better name for this method, it is hard to get the meaning.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao merged PR #8213:
URL: https://github.com/apache/gravitino/pull/8213


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on PR #8213:
URL: https://github.com/apache/gravitino/pull/8213#issuecomment-3264400242

   I will check the error recently to follow up 1.0 release


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #8213:
URL: https://github.com/apache/gravitino/pull/8213#discussion_r2347749324


##########
docs/spark-connector/spark-catalog-paimon.md:
##########
@@ -5,7 +5,7 @@ keyword: spark connector paimon catalog
 license: "This software is licensed under the Apache License version 2."
 ---
 
-The Apache Gravitino Spark connector offers the capability to read and write Paimon tables, with the metadata managed by the Gravitino server. To enable the use of the Paimon catalog within the Spark connector now, you must set download [Paimon Spark runtime jar](https://paimon.apache.org/docs/0.8/spark/quick-start/#preparation) to Spark classpath.
+The Apache Gravitino Spark connector offers the capability to read and write Paimon tables, with the metadata managed by the Gravitino server. To enable the use of the Paimon catalog within the Spark connector now, you must set the configuration `spark.sql.gravitino.enablePaimonSupport` to `true` and download [Paimon Spark runtime jar](https://paimon.apache.org/docs/1.2/spark/quick-start/#preparation) to Spark classpath.

Review Comment:
   Why do we need to use another configuration to enable the Paimon support, can you please elaborate more?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 closed pull request #8213: [#8163] feat(catalog): Support paimon latest version-1.2.0
URL: https://github.com/apache/gravitino/pull/8213


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #8213:
URL: https://github.com/apache/gravitino/pull/8213#discussion_r2343059118


##########
build.gradle.kts:
##########
@@ -244,6 +244,31 @@ nexusPublishing {
   packageGroup.set("org.apache.gravitino")
 }
 
+fun configureSparkConnectorExcludes(project: Project) {
+  project.afterEvaluate {
+    if (scalaVersion != "2.12") {
+      println("doing configureSparkConnectorExcludes")

Review Comment:
   Remove this debugging line.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #8213:
URL: https://github.com/apache/gravitino/pull/8213#discussion_r2343176146


##########
build.gradle.kts:
##########
@@ -244,6 +244,31 @@ nexusPublishing {
   packageGroup.set("org.apache.gravitino")
 }
 
+fun configureSparkConnectorExcludes(project: Project) {

Review Comment:
   renamed to `excludePackagesForSparkConnector`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #8213:
URL: https://github.com/apache/gravitino/pull/8213#discussion_r2347785057


##########
docs/spark-connector/spark-catalog-paimon.md:
##########
@@ -5,7 +5,7 @@ keyword: spark connector paimon catalog
 license: "This software is licensed under the Apache License version 2."
 ---
 
-The Apache Gravitino Spark connector offers the capability to read and write Paimon tables, with the metadata managed by the Gravitino server. To enable the use of the Paimon catalog within the Spark connector now, you must set download [Paimon Spark runtime jar](https://paimon.apache.org/docs/0.8/spark/quick-start/#preparation) to Spark classpath.
+The Apache Gravitino Spark connector offers the capability to read and write Paimon tables, with the metadata managed by the Gravitino server. To enable the use of the Paimon catalog within the Spark connector now, you must set the configuration `spark.sql.gravitino.enablePaimonSupport` to `true` and download [Paimon Spark runtime jar](https://paimon.apache.org/docs/1.2/spark/quick-start/#preparation) to Spark classpath.

Review Comment:
   To control whether inject Paimon Spark extensions to Spark



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on PR #8213:
URL: https://github.com/apache/gravitino/pull/8213#issuecomment-3277070567

   After moving `testImplementation("org.apache.paimon:paimon-spark-$sparkMajorVersion:$paimonVersion")` to the original place in https://github.com/apache/gravitino/pull/8213/commits/67926f1e6ad71769cbb2e61ccfd78d9bf34b67cf, the CI passed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8163] feat(catalog): Support paimon latest version-1.2.0 [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on PR #8213:
URL: https://github.com/apache/gravitino/pull/8213#issuecomment-3274009006

   @jerryshao @liujinhui1994 PTAL, thx


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org