You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "yihua (via GitHub)" <gi...@apache.org> on 2023/02/14 07:02:32 UTC

[GitHub] [hudi] yihua opened a new pull request, #7938: [HUDI-5785] Enhance Spark Datasource tests

yihua opened a new pull request, #7938:
URL: https://github.com/apache/hudi/pull/7938

   ### Change Logs
   
   Previously, we found that Spark Datasource read of metadata table was broken and the issue is fixed by #7924.  However, the `TestMetadataTableWithSparkDataSource` guarding the exact same functionality did not fail in CI or local mvn command below.  After investigation, the Hudi Spark configs (`spark.sql.catalog.spark_catalog=org.apache.spark.sql.hudi.catalog.HoodieCatalog`, `spark.sql.extensions=org.apache.spark.sql.hudi.HoodieSparkSessionExtension`) are not properly added to the Spark session in the test environment.
   
   This PR sets the proper Hudi Spark configs for Spark Datasource tests and adds one more test on reading metadata table through Spark Datasource.
   
   ### Impact
   
   After this change, without the fix #7924, the following test fails which is consistent with the behavior of spark-shell (previously it passed without raising the alarm).
   ```
   mvn clean test -Dspark3.3 -Dscala-2.12 -DwildcardSuites="abc" -Dtest=TestMetadataTableWithSparkDataSource -DfailIfNoTests=false -pl hudi-spark-datasource/hudi-spark -am
   ```
   
   ### Risk level
   
   low
   
   ### Documentation Update
   
   N/A
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] 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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #7938: [HUDI-5785] Enhance Spark Datasource tests

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #7938:
URL: https://github.com/apache/hudi/pull/7938#issuecomment-1429676630

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153",
       "triggerID" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4e7da703304c7783e9771e931e39854adf6458d6 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] nsivabalan commented on pull request #7938: [HUDI-5785] Enhance Spark Datasource tests

Posted by "nsivabalan (via GitHub)" <gi...@apache.org>.
nsivabalan commented on PR #7938:
URL: https://github.com/apache/hudi/pull/7938#issuecomment-1474414016

   Since this has been approved already, will go ahead and merge once CI is green.


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #7938: [HUDI-5785] Enhance Spark Datasource tests

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #7938:
URL: https://github.com/apache/hudi/pull/7938#issuecomment-1474525335

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153",
       "triggerID" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1bf2b8c5d85a0c2dbbc2ea8c2274eea254b9d8d4",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15774",
       "triggerID" : "1bf2b8c5d85a0c2dbbc2ea8c2274eea254b9d8d4",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1bf2b8c5d85a0c2dbbc2ea8c2274eea254b9d8d4 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15774) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #7938: [HUDI-5785] Enhance Spark Datasource tests

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #7938:
URL: https://github.com/apache/hudi/pull/7938#issuecomment-1430128767

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153",
       "triggerID" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4e7da703304c7783e9771e931e39854adf6458d6 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] nsivabalan merged pull request #7938: [HUDI-5785] Enhance Spark Datasource tests

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


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #7938: [HUDI-5785] Enhance Spark Datasource tests

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #7938:
URL: https://github.com/apache/hudi/pull/7938#issuecomment-1474440222

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153",
       "triggerID" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1bf2b8c5d85a0c2dbbc2ea8c2274eea254b9d8d4",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15774",
       "triggerID" : "1bf2b8c5d85a0c2dbbc2ea8c2274eea254b9d8d4",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4e7da703304c7783e9771e931e39854adf6458d6 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153) 
   * 1bf2b8c5d85a0c2dbbc2ea8c2274eea254b9d8d4 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15774) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #7938: [HUDI-5785] Enhance Spark Datasource tests

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #7938:
URL: https://github.com/apache/hudi/pull/7938#issuecomment-1430119584

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4e7da703304c7783e9771e931e39854adf6458d6 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #7938: [HUDI-5785] Enhance Spark Datasource tests

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #7938:
URL: https://github.com/apache/hudi/pull/7938#issuecomment-1430339202

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153",
       "triggerID" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4e7da703304c7783e9771e931e39854adf6458d6 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #7938: [HUDI-5785] Enhance Spark Datasource tests

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #7938:
URL: https://github.com/apache/hudi/pull/7938#issuecomment-1429271565

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153",
       "triggerID" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4e7da703304c7783e9771e931e39854adf6458d6 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] yihua commented on pull request #7938: [HUDI-5785] Enhance Spark Datasource tests

Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua commented on PR #7938:
URL: https://github.com/apache/hudi/pull/7938#issuecomment-1430118933

   > Let's start the process of unifying all of the utilities to make sure we're not getting bitten by the same thing again https://github.com/apache/hudi/pull/7702/files#diff-93d5c78a2db3470cef4a643a3b41b8b97876f411310a5653d232525c87a6d749
   
   I created this to unify all APIs to construct Spark configs: [HUDI-5788](https://issues.apache.org/jira/browse/HUDI-5788)


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #7938: [HUDI-5785] Enhance Spark Datasource tests

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #7938:
URL: https://github.com/apache/hudi/pull/7938#issuecomment-1429261925

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4e7da703304c7783e9771e931e39854adf6458d6 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #7938: [HUDI-5785] Enhance Spark Datasource tests

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #7938:
URL: https://github.com/apache/hudi/pull/7938#issuecomment-1474433372

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153",
       "triggerID" : "4e7da703304c7783e9771e931e39854adf6458d6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1bf2b8c5d85a0c2dbbc2ea8c2274eea254b9d8d4",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "1bf2b8c5d85a0c2dbbc2ea8c2274eea254b9d8d4",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4e7da703304c7783e9771e931e39854adf6458d6 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15153) 
   * 1bf2b8c5d85a0c2dbbc2ea8c2274eea254b9d8d4 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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