You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2023/01/19 06:48:49 UTC

[GitHub] [hudi] waywtdcc opened a new pull request, #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

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

   
   
   ### Change Logs
   
   Fix flink creates and writes the table, the spark alter table reports an error
   
   ### Impact
   
   Fix flink creates and writes the table, the spark alter table reports an error
   
   ### Risk level (write none, low medium or high below)
   
   low
   
   ### Documentation Update
   
   
   ### Contributor's checklist
   
   - [X] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [X] Change Logs and Impact were stated clearly
   - [X] Adequate tests were added if applicable
   - [X] 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 #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7706:
URL: https://github.com/apache/hudi/pull/7706#issuecomment-1397688233

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "126951c4f2e2581ffbfb996df3d2ea325290f7f6",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14447",
       "triggerID" : "126951c4f2e2581ffbfb996df3d2ea325290f7f6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 126951c4f2e2581ffbfb996df3d2ea325290f7f6 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14447) 
   
   <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 #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "126951c4f2e2581ffbfb996df3d2ea325290f7f6",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14447",
       "triggerID" : "126951c4f2e2581ffbfb996df3d2ea325290f7f6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8c4ddec99d740d881bbabb9ca27e860c217acc2c",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14803",
       "triggerID" : "8c4ddec99d740d881bbabb9ca27e860c217acc2c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 126951c4f2e2581ffbfb996df3d2ea325290f7f6 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14447) 
   * 8c4ddec99d740d881bbabb9ca27e860c217acc2c Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14803) 
   
   <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] danny0405 commented on pull request #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

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

   [HUDI-5585.patch.zip](https://github.com/apache/hudi/files/10542826/HUDI-5585.patch.zip)
   Thanks for the contribution, I have reviewed and attache a patch, can you apply the path with cmd:
   
   `git apply xxx.patch`
   
   then rebase with the latest master code and force push?


-- 
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] waywtdcc commented on a diff in pull request #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

Posted by "waywtdcc (via GitHub)" <gi...@apache.org>.
waywtdcc commented on code in PR #7706:
URL: https://github.com/apache/hudi/pull/7706#discussion_r1091477435


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/catalog/HoodieHiveCatalog.java:
##########
@@ -438,8 +439,10 @@ public CatalogBaseTable getTable(ObjectPath tablePath) throws TableNotExistExcep
       LOG.warn("{} does not have any hoodie schema, and use hive table schema to infer the table schema", tablePath);
       schema = HiveSchemaUtils.convertTableSchema(hiveTable);
     }
+    org.apache.flink.table.api.Schema resultSchema = DataTypeUtils.dropIfExistsColumns(schema, HoodieRecord.HOODIE_META_COLUMNS_WITH_OPERATION);
+

Review Comment:
   Indeed, I have removed.



-- 
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] danny0405 commented on pull request #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

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

   0.13.0


-- 
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] danny0405 commented on pull request #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

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

   The two failed tests are un-related with this patch:
   
   https://dev.azure.com/apache-hudi-ci-org/apache-hudi-ci/_build/results?buildId=14803&view=logs&j=3b6e910d-b98f-5de6-b9cb-1e5ff571f5de&t=30b5aae4-0ea0-5566-42d0-febf71a7061a&l=421297
   
   https://dev.azure.com/apache-hudi-ci-org/apache-hudi-ci/_build/results?buildId=14803&view=logs&j=7601efb9-4019-552e-11ba-eb31b66593b2&t=9688f101-287d-53f4-2a80-87202516f5d0&l=7247
   
   Would merge it soon~


-- 
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 #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7706:
URL: https://github.com/apache/hudi/pull/7706#issuecomment-1396562517

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "126951c4f2e2581ffbfb996df3d2ea325290f7f6",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14447",
       "triggerID" : "126951c4f2e2581ffbfb996df3d2ea325290f7f6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 126951c4f2e2581ffbfb996df3d2ea325290f7f6 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14447) 
   
   <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] danny0405 commented on a diff in pull request #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #7706:
URL: https://github.com/apache/hudi/pull/7706#discussion_r1091428782


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/catalog/HoodieHiveCatalog.java:
##########
@@ -438,8 +439,10 @@ public CatalogBaseTable getTable(ObjectPath tablePath) throws TableNotExistExcep
       LOG.warn("{} does not have any hoodie schema, and use hive table schema to infer the table schema", tablePath);
       schema = HiveSchemaUtils.convertTableSchema(hiveTable);
     }
+    org.apache.flink.table.api.Schema resultSchema = DataTypeUtils.dropIfExistsColumns(schema, HoodieRecord.HOODIE_META_COLUMNS_WITH_OPERATION);
+

Review Comment:
   In line419, we already ignore the metadata column, so why drop it again?



-- 
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 #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "126951c4f2e2581ffbfb996df3d2ea325290f7f6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14447",
       "triggerID" : "126951c4f2e2581ffbfb996df3d2ea325290f7f6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8c4ddec99d740d881bbabb9ca27e860c217acc2c",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14803",
       "triggerID" : "8c4ddec99d740d881bbabb9ca27e860c217acc2c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8c4ddec99d740d881bbabb9ca27e860c217acc2c Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14803) 
   
   <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] waywtdcc commented on pull request #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

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

   > Thanks for the fix @waywtdcc , can we describe in high level what we are fixing here?
   
   This is spark and flink metadata incompatibility issue. The table created by flink cannot be changed by 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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "126951c4f2e2581ffbfb996df3d2ea325290f7f6",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14447",
       "triggerID" : "126951c4f2e2581ffbfb996df3d2ea325290f7f6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8c4ddec99d740d881bbabb9ca27e860c217acc2c",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "8c4ddec99d740d881bbabb9ca27e860c217acc2c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 126951c4f2e2581ffbfb996df3d2ea325290f7f6 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14447) 
   * 8c4ddec99d740d881bbabb9ca27e860c217acc2c 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] chenbodeng719 commented on pull request #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

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

   Which released version includes this feature realesed? Hudi 0.12 version has to stick with this problem?


-- 
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] danny0405 commented on pull request #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

Posted by GitBox <gi...@apache.org>.
danny0405 commented on PR #7706:
URL: https://github.com/apache/hudi/pull/7706#issuecomment-1397964369

   Thanks for the fix  @waywtdcc , can we describe in high level what we are fixing here?


-- 
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 #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7706:
URL: https://github.com/apache/hudi/pull/7706#issuecomment-1396556155

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "126951c4f2e2581ffbfb996df3d2ea325290f7f6",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "126951c4f2e2581ffbfb996df3d2ea325290f7f6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 126951c4f2e2581ffbfb996df3d2ea325290f7f6 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] danny0405 merged pull request #7706: [HUDI-5585][flink]Fix flink creates and writes the table, the spark alter table reports an error

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


-- 
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