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 2021/12/29 12:35:05 UTC
[GitHub] [hudi] aditiwari01 opened a new pull request #4468: [Issue: #2802] Fixing Hive getSchema for RT tables
aditiwari01 opened a new pull request #4468:
URL: https://github.com/apache/hudi/pull/4468
## What is the purpose of the pull request
*Fixing Hive getSchema for RT tables*
Refer issue for more details: https://github.com/apache/hudi/issues/2802
## Verify this pull request:
Unit tests to be explored. I have tested on local and cluster spark-hive.
## Committer checklist
- [ ] Has a corresponding JIRA in PR title & commit
- [ ] Commit message is descriptive of the change
- [ ] CI is green
- [ ] Necessary doc changes done or have another open PR
- [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
--
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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1051280091
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 59331875dcbfb6d64a6cca6e2794c7be565bc97d Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329)
* 2461ceb7bb042694782128370df1e96f05a71391 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1052115368
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2461ceb7bb042694782128370df1e96f05a71391 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330)
* c032433e87c4eccf92b90cea68e2811ef2a0f225 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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1053632716
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
}, {
"hash" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c032433e87c4eccf92b90cea68e2811ef2a0f225 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350)
* 256f7d8d49e502ee5504815dcb2df7e4453e67a7 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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1052115368
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2461ceb7bb042694782128370df1e96f05a71391 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330)
* c032433e87c4eccf92b90cea68e2811ef2a0f225 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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1053651107
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
}, {
"hash" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369",
"triggerID" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 256f7d8d49e502ee5504815dcb2df7e4453e67a7 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369)
<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] alexeykudinkin commented on a change in pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
alexeykudinkin commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r825151819
##########
File path: hudi-common/src/main/java/org/apache/hudi/common/table/TableSchemaResolver.java
##########
@@ -143,7 +143,7 @@ public Schema getTableAvroSchemaFromDataFile() {
* @throws Exception
*/
public Schema getTableAvroSchema() throws Exception {
- return getTableAvroSchema(metaClient.getTableConfig().populateMetaFields());
Review comment:
@aditiwari01 @codope folks, can you please elaborate why this has been changed? Why are we assuming that Table's schema should have meta-fields?
--
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 a change in pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r803019198
##########
File path: hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java
##########
@@ -77,19 +74,17 @@ private boolean usesCustomPayload() {
}
/**
- * Goes through the log files in reverse order and finds the schema from the last available data block. If not, falls
+ * Gets schema from HoodieTableMetaClient. If not, falls
* back to the schema from the latest parquet file. Finally, sets the partition column and projection fields into the
* job conf.
*/
- private void init() throws IOException {
- Schema schemaFromLogFile = LogReaderUtils.readLatestSchemaFromLogFiles(split.getBasePath(), split.getDeltaLogFiles(), jobConf);
- if (schemaFromLogFile == null) {
- writerSchema = InputSplitUtils.getBaseFileSchema((FileSplit)split, jobConf);
- LOG.info("Writer Schema From Parquet => " + writerSchema.getFields());
- } else {
- writerSchema = schemaFromLogFile;
- LOG.info("Writer Schema From Log => " + writerSchema.toString(true));
- }
+ private void init() throws Exception {
+
+ HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setConf(split.getPath().getFileSystem(jobConf).getConf()).setBasePath(split.getBasePath()).build();
+ TableSchemaResolver schemaUtil = new TableSchemaResolver(metaClient);
Review comment:
I checked the latest master and code has evolved due to key dedup for metadata and other requirements. So, already we have metaClient in AbstractHoodieLogRecordReader. Can you rebase w/ latest master and revisit the actual fix. may be the fix has to be done at higher layers, bcoz, I see the schema resolution is not done in this class (w/ latest master)
--
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] codope commented on a change in pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
codope commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r816086132
##########
File path: hudi-hadoop-mr/src/test/java/org/apache/hudi/hadoop/realtime/TestHoodieRealtimeRecordReader.java
##########
@@ -529,7 +531,10 @@ public void testSchemaEvolutionAndRollbackBlockInLastLogFile(ExternalSpillableMa
newCommitTime, "101", 1);
logFiles.add(writer.getLogFile());
writer.close();
- InputFormatTestUtil.deltaCommit(basePath, newCommitTime);
+
+ commitMetadata = CommitUtils.buildMetadata(Collections.emptyList(), Collections.emptyMap(), Option.empty(), WriteOperationType.UPSERT,
+ schema.toString(), HoodieTimeline.DELTA_COMMIT_ACTION);
+ FileCreateUtils.createCommit(basePath.toString(), instantTime, Option.of(commitMetadata));
Review comment:
Shouldn't this be `createDeltaCommit`?
--
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] codope commented on a change in pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
codope commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r790643520
##########
File path: hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java
##########
@@ -77,19 +74,17 @@ private boolean usesCustomPayload() {
}
/**
- * Goes through the log files in reverse order and finds the schema from the last available data block. If not, falls
+ * Gets schema from HoodieTableMetaClient. If not, falls
* back to the schema from the latest parquet file. Finally, sets the partition column and projection fields into the
* job conf.
*/
- private void init() throws IOException {
- Schema schemaFromLogFile = LogReaderUtils.readLatestSchemaFromLogFiles(split.getBasePath(), split.getDeltaLogFiles(), jobConf);
- if (schemaFromLogFile == null) {
- writerSchema = InputSplitUtils.getBaseFileSchema((FileSplit)split, jobConf);
- LOG.info("Writer Schema From Parquet => " + writerSchema.getFields());
- } else {
- writerSchema = schemaFromLogFile;
- LOG.info("Writer Schema From Log => " + writerSchema.toString(true));
- }
+ private void init() throws Exception {
+
+ HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setConf(split.getPath().getFileSystem(jobConf).getConf()).setBasePath(split.getBasePath()).build();
+ TableSchemaResolver schemaUtil = new TableSchemaResolver(metaClient);
Review comment:
+1 on not using metaClient in record reader.
@aditiwari01 What do you think of reafactoring as suggested above?
--
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] aditiwari01 commented on a change in pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
aditiwari01 commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r802299209
##########
File path: hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java
##########
@@ -77,19 +74,17 @@ private boolean usesCustomPayload() {
}
/**
- * Goes through the log files in reverse order and finds the schema from the last available data block. If not, falls
+ * Gets schema from HoodieTableMetaClient. If not, falls
* back to the schema from the latest parquet file. Finally, sets the partition column and projection fields into the
* job conf.
*/
- private void init() throws IOException {
- Schema schemaFromLogFile = LogReaderUtils.readLatestSchemaFromLogFiles(split.getBasePath(), split.getDeltaLogFiles(), jobConf);
- if (schemaFromLogFile == null) {
- writerSchema = InputSplitUtils.getBaseFileSchema((FileSplit)split, jobConf);
- LOG.info("Writer Schema From Parquet => " + writerSchema.getFields());
- } else {
- writerSchema = schemaFromLogFile;
- LOG.info("Writer Schema From Log => " + writerSchema.toString(true));
- }
+ private void init() throws Exception {
+
+ HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setConf(split.getPath().getFileSystem(jobConf).getConf()).setBasePath(split.getBasePath()).build();
+ TableSchemaResolver schemaUtil = new TableSchemaResolver(metaClient);
Review comment:
@nsivabalan @codope
Would it be fine if I get the schema from Metaclient in InputFormat (HoodieCombineHiveInputFormat) once and pass the schema to all the record readers from there?
--
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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1051220692
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 59331875dcbfb6d64a6cca6e2794c7be565bc97d Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1059279380
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
}, {
"hash" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369",
"triggerID" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"triggerType" : "PUSH"
}, {
"hash" : "83a70c5f516ed484b779a05584ef1569bffb56bc",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "83a70c5f516ed484b779a05584ef1569bffb56bc",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 256f7d8d49e502ee5504815dcb2df7e4453e67a7 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369)
* 83a70c5f516ed484b779a05584ef1569bffb56bc 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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1053651107
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
}, {
"hash" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369",
"triggerID" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 256f7d8d49e502ee5504815dcb2df7e4453e67a7 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369)
<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] xiarixiaoyao commented on a change in pull request #4468: [Issue: #2802] Fixing Hive getSchema for RT tables
Posted by GitBox <gi...@apache.org>.
xiarixiaoyao commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r776545682
##########
File path: hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java
##########
@@ -77,19 +74,17 @@ private boolean usesCustomPayload() {
}
/**
- * Goes through the log files in reverse order and finds the schema from the last available data block. If not, falls
+ * Gets schema from HoodieTableMetaClient. If not, falls
* back to the schema from the latest parquet file. Finally, sets the partition column and projection fields into the
* job conf.
*/
- private void init() throws IOException {
- Schema schemaFromLogFile = LogReaderUtils.readLatestSchemaFromLogFiles(split.getBasePath(), split.getDeltaLogFiles(), jobConf);
- if (schemaFromLogFile == null) {
- writerSchema = InputSplitUtils.getBaseFileSchema((FileSplit)split, jobConf);
- LOG.info("Writer Schema From Parquet => " + writerSchema.getFields());
- } else {
- writerSchema = schemaFromLogFile;
- LOG.info("Writer Schema From Log => " + writerSchema.toString(true));
- }
+ private void init() throws Exception {
+
+ HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setConf(split.getPath().getFileSystem(jobConf).getConf()).setBasePath(split.getBasePath()).build();
+ TableSchemaResolver schemaUtil = new TableSchemaResolver(metaClient);
Review comment:
@nsivabalan We found this problem a long time ago, this fix can really solve this problem,
but i notice an additional comment in this funcition: // TODO(vc): In the future, the reader schema should be updated based on log files & be able
vc may have some extra considerations for 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] hudi-bot removed a comment on pull request #4468: [Issue: #2802] Fixing Hive getSchema for RT tables
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1002575901
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 433fa28702fd7628c7b48c18385ec8c4700ec2b8 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800)
<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 a change in pull request #4468: [Issue: #2802] Fixing Hive getSchema for RT tables
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r776510489
##########
File path: hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java
##########
@@ -77,19 +74,17 @@ private boolean usesCustomPayload() {
}
/**
- * Goes through the log files in reverse order and finds the schema from the last available data block. If not, falls
+ * Gets schema from HoodieTableMetaClient. If not, falls
* back to the schema from the latest parquet file. Finally, sets the partition column and projection fields into the
* job conf.
*/
- private void init() throws IOException {
- Schema schemaFromLogFile = LogReaderUtils.readLatestSchemaFromLogFiles(split.getBasePath(), split.getDeltaLogFiles(), jobConf);
- if (schemaFromLogFile == null) {
- writerSchema = InputSplitUtils.getBaseFileSchema((FileSplit)split, jobConf);
- LOG.info("Writer Schema From Parquet => " + writerSchema.getFields());
- } else {
- writerSchema = schemaFromLogFile;
- LOG.info("Writer Schema From Log => " + writerSchema.toString(true));
- }
+ private void init() throws Exception {
+
+ HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setConf(split.getPath().getFileSystem(jobConf).getConf()).setBasePath(split.getBasePath()).build();
+ TableSchemaResolver schemaUtil = new TableSchemaResolver(metaClient);
Review comment:
If diff partitions have diff schemas, this would fail right? partition2's schema could be unrelated to partition1 schema. so, I am not sure on the fix. can you help me understand how the fix would help the use-case where different partitions have diff schemas.
--
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] codope commented on a change in pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables
Posted by GitBox <gi...@apache.org>.
codope commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r776921140
##########
File path: hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java
##########
@@ -77,19 +74,17 @@ private boolean usesCustomPayload() {
}
/**
- * Goes through the log files in reverse order and finds the schema from the last available data block. If not, falls
+ * Gets schema from HoodieTableMetaClient. If not, falls
* back to the schema from the latest parquet file. Finally, sets the partition column and projection fields into the
* job conf.
*/
- private void init() throws IOException {
- Schema schemaFromLogFile = LogReaderUtils.readLatestSchemaFromLogFiles(split.getBasePath(), split.getDeltaLogFiles(), jobConf);
- if (schemaFromLogFile == null) {
- writerSchema = InputSplitUtils.getBaseFileSchema((FileSplit)split, jobConf);
- LOG.info("Writer Schema From Parquet => " + writerSchema.getFields());
- } else {
- writerSchema = schemaFromLogFile;
- LOG.info("Writer Schema From Log => " + writerSchema.toString(true));
- }
+ private void init() throws Exception {
+
+ HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setConf(split.getPath().getFileSystem(jobConf).getConf()).setBasePath(split.getBasePath()).build();
+ TableSchemaResolver schemaUtil = new TableSchemaResolver(metaClient);
Review comment:
I think this will work. But i'm worried about performance. Are we going to initialize metaclient for each split? If yes, then maybe we can cache metaclient at a table level.
--
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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1051316141
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2461ceb7bb042694782128370df1e96f05a71391 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330)
<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 a change in pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r816428222
##########
File path: hudi-hadoop-mr/src/test/java/org/apache/hudi/hadoop/realtime/TestHoodieRealtimeRecordReader.java
##########
@@ -529,7 +531,10 @@ public void testSchemaEvolutionAndRollbackBlockInLastLogFile(ExternalSpillableMa
newCommitTime, "101", 1);
logFiles.add(writer.getLogFile());
writer.close();
- InputFormatTestUtil.deltaCommit(basePath, newCommitTime);
+
+ commitMetadata = CommitUtils.buildMetadata(Collections.emptyList(), Collections.emptyMap(), Option.empty(), WriteOperationType.UPSERT,
+ schema.toString(), HoodieTimeline.DELTA_COMMIT_ACTION);
+ FileCreateUtils.createCommit(basePath.toString(), instantTime, Option.of(commitMetadata));
Review comment:
yes. will fix it.
--
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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1059281861
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
}, {
"hash" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369",
"triggerID" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"triggerType" : "PUSH"
}, {
"hash" : "83a70c5f516ed484b779a05584ef1569bffb56bc",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6549",
"triggerID" : "83a70c5f516ed484b779a05584ef1569bffb56bc",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 256f7d8d49e502ee5504815dcb2df7e4453e67a7 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369)
* 83a70c5f516ed484b779a05584ef1569bffb56bc Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6549)
<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] aditiwari01 commented on a change in pull request #4468: [Issue: #2802] Fixing Hive getSchema for RT tables
Posted by GitBox <gi...@apache.org>.
aditiwari01 commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r776632909
##########
File path: hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java
##########
@@ -77,19 +74,17 @@ private boolean usesCustomPayload() {
}
/**
- * Goes through the log files in reverse order and finds the schema from the last available data block. If not, falls
+ * Gets schema from HoodieTableMetaClient. If not, falls
* back to the schema from the latest parquet file. Finally, sets the partition column and projection fields into the
* job conf.
*/
- private void init() throws IOException {
- Schema schemaFromLogFile = LogReaderUtils.readLatestSchemaFromLogFiles(split.getBasePath(), split.getDeltaLogFiles(), jobConf);
- if (schemaFromLogFile == null) {
- writerSchema = InputSplitUtils.getBaseFileSchema((FileSplit)split, jobConf);
- LOG.info("Writer Schema From Parquet => " + writerSchema.getFields());
- } else {
- writerSchema = schemaFromLogFile;
- LOG.info("Writer Schema From Log => " + writerSchema.toString(true));
- }
+ private void init() throws Exception {
+
+ HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setConf(split.getPath().getFileSystem(jobConf).getConf()).setBasePath(split.getBasePath()).build();
+ TableSchemaResolver schemaUtil = new TableSchemaResolver(metaClient);
Review comment:
@nsivabalan The idea behind this is that the TableSchemaResolver will provide us the latest schema. Some partitions might not have few columns that are present in main schema, but those will be set as NULL for that partition.
The issue with current logic is that it gets different schema for different partition which later conflict if multiple partitions are read at the same time.
@xiarixiaoyao As for the TODO mentioned, I'm not exactly sure about the complete context, but with this patch it nulls out the fields not present before (i.e. not in the partition schema but is there in latest schema)
--
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 #4468: [Issue: #2802] Fixing Hive getSchema for RT tables
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1002574877
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 433fa28702fd7628c7b48c18385ec8c4700ec2b8 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] aditiwari01 commented on a change in pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
aditiwari01 commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r790655562
##########
File path: hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java
##########
@@ -77,19 +74,17 @@ private boolean usesCustomPayload() {
}
/**
- * Goes through the log files in reverse order and finds the schema from the last available data block. If not, falls
+ * Gets schema from HoodieTableMetaClient. If not, falls
* back to the schema from the latest parquet file. Finally, sets the partition column and projection fields into the
* job conf.
*/
- private void init() throws IOException {
- Schema schemaFromLogFile = LogReaderUtils.readLatestSchemaFromLogFiles(split.getBasePath(), split.getDeltaLogFiles(), jobConf);
- if (schemaFromLogFile == null) {
- writerSchema = InputSplitUtils.getBaseFileSchema((FileSplit)split, jobConf);
- LOG.info("Writer Schema From Parquet => " + writerSchema.getFields());
- } else {
- writerSchema = schemaFromLogFile;
- LOG.info("Writer Schema From Log => " + writerSchema.toString(true));
- }
+ private void init() throws Exception {
+
+ HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setConf(split.getPath().getFileSystem(jobConf).getConf()).setBasePath(split.getBasePath()).build();
+ TableSchemaResolver schemaUtil = new TableSchemaResolver(metaClient);
Review comment:
It makes sense toh have this metaclient come from upper layer. Let me explore the code a bit 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@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1052115832
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2461ceb7bb042694782128370df1e96f05a71391 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330)
* c032433e87c4eccf92b90cea68e2811ef2a0f225 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1051121868
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 433fa28702fd7628c7b48c18385ec8c4700ec2b8 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800)
* 59331875dcbfb6d64a6cca6e2794c7be565bc97d Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1051278496
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 59331875dcbfb6d64a6cca6e2794c7be565bc97d Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329)
* 2461ceb7bb042694782128370df1e96f05a71391 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] nsivabalan commented on a change in pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r802161187
##########
File path: hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java
##########
@@ -77,19 +74,17 @@ private boolean usesCustomPayload() {
}
/**
- * Goes through the log files in reverse order and finds the schema from the last available data block. If not, falls
+ * Gets schema from HoodieTableMetaClient. If not, falls
* back to the schema from the latest parquet file. Finally, sets the partition column and projection fields into the
* job conf.
*/
- private void init() throws IOException {
- Schema schemaFromLogFile = LogReaderUtils.readLatestSchemaFromLogFiles(split.getBasePath(), split.getDeltaLogFiles(), jobConf);
- if (schemaFromLogFile == null) {
- writerSchema = InputSplitUtils.getBaseFileSchema((FileSplit)split, jobConf);
- LOG.info("Writer Schema From Parquet => " + writerSchema.getFields());
- } else {
- writerSchema = schemaFromLogFile;
- LOG.info("Writer Schema From Log => " + writerSchema.toString(true));
- }
+ private void init() throws Exception {
+
+ HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setConf(split.getPath().getFileSystem(jobConf).getConf()).setBasePath(split.getBasePath()).build();
+ TableSchemaResolver schemaUtil = new TableSchemaResolver(metaClient);
Review comment:
@aditiwari01 : do you happened to have any updates here please. We are looking to get this in for 0.11. would appreciate if you can follow up on the feedback.
--
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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1051119908
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 433fa28702fd7628c7b48c18385ec8c4700ec2b8 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800)
* 59331875dcbfb6d64a6cca6e2794c7be565bc97d 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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1051278496
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 59331875dcbfb6d64a6cca6e2794c7be565bc97d Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329)
* 2461ceb7bb042694782128370df1e96f05a71391 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] nsivabalan commented on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1054242749
@codope : good to review the patch. I have pushed commits to address feedback.
--
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] codope merged pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
codope merged pull request #4468:
URL: https://github.com/apache/hudi/pull/4468
--
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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1059279380
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
}, {
"hash" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369",
"triggerID" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"triggerType" : "PUSH"
}, {
"hash" : "83a70c5f516ed484b779a05584ef1569bffb56bc",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "83a70c5f516ed484b779a05584ef1569bffb56bc",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 256f7d8d49e502ee5504815dcb2df7e4453e67a7 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369)
* 83a70c5f516ed484b779a05584ef1569bffb56bc 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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1059340120
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
}, {
"hash" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369",
"triggerID" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"triggerType" : "PUSH"
}, {
"hash" : "83a70c5f516ed484b779a05584ef1569bffb56bc",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6549",
"triggerID" : "83a70c5f516ed484b779a05584ef1569bffb56bc",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 83a70c5f516ed484b779a05584ef1569bffb56bc Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6549)
<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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1002606537
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 433fa28702fd7628c7b48c18385ec8c4700ec2b8 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1054976081
sure. will add a test for schema evolution
--
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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1053632716
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
}, {
"hash" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c032433e87c4eccf92b90cea68e2811ef2a0f225 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350)
* 256f7d8d49e502ee5504815dcb2df7e4453e67a7 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 #4468: [Issue: #2802] Fixing Hive getSchema for RT tables
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1002606537
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 433fa28702fd7628c7b48c18385ec8c4700ec2b8 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800)
<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 #4468: [Issue: #2802] Fixing Hive getSchema for RT tables
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1002575901
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 433fa28702fd7628c7b48c18385ec8c4700ec2b8 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800)
<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 removed a comment on pull request #4468: [Issue: #2802] Fixing Hive getSchema for RT tables
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1002574877
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 433fa28702fd7628c7b48c18385ec8c4700ec2b8 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] aditiwari01 commented on a change in pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
aditiwari01 commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r802299209
##########
File path: hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java
##########
@@ -77,19 +74,17 @@ private boolean usesCustomPayload() {
}
/**
- * Goes through the log files in reverse order and finds the schema from the last available data block. If not, falls
+ * Gets schema from HoodieTableMetaClient. If not, falls
* back to the schema from the latest parquet file. Finally, sets the partition column and projection fields into the
* job conf.
*/
- private void init() throws IOException {
- Schema schemaFromLogFile = LogReaderUtils.readLatestSchemaFromLogFiles(split.getBasePath(), split.getDeltaLogFiles(), jobConf);
- if (schemaFromLogFile == null) {
- writerSchema = InputSplitUtils.getBaseFileSchema((FileSplit)split, jobConf);
- LOG.info("Writer Schema From Parquet => " + writerSchema.getFields());
- } else {
- writerSchema = schemaFromLogFile;
- LOG.info("Writer Schema From Log => " + writerSchema.toString(true));
- }
+ private void init() throws Exception {
+
+ HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setConf(split.getPath().getFileSystem(jobConf).getConf()).setBasePath(split.getBasePath()).build();
+ TableSchemaResolver schemaUtil = new TableSchemaResolver(metaClient);
Review comment:
Would it be fine if I get the schema from Metaclient in InputFormat (HoodieCombineHiveInputFormat) once and pass the schema to all the record readers from there?
--
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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1053633442
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
}, {
"hash" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369",
"triggerID" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c032433e87c4eccf92b90cea68e2811ef2a0f225 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350)
* 256f7d8d49e502ee5504815dcb2df7e4453e67a7 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1059281861
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
}, {
"hash" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369",
"triggerID" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"triggerType" : "PUSH"
}, {
"hash" : "83a70c5f516ed484b779a05584ef1569bffb56bc",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6549",
"triggerID" : "83a70c5f516ed484b779a05584ef1569bffb56bc",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 256f7d8d49e502ee5504815dcb2df7e4453e67a7 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369)
* 83a70c5f516ed484b779a05584ef1569bffb56bc Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6549)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1059277725
@codope : Added a test for schema evolution across partitions. you can take a look.
--
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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1053633442
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
}, {
"hash" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369",
"triggerID" : "256f7d8d49e502ee5504815dcb2df7e4453e67a7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c032433e87c4eccf92b90cea68e2811ef2a0f225 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350)
* 256f7d8d49e502ee5504815dcb2df7e4453e67a7 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6369)
<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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1052128438
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c032433e87c4eccf92b90cea68e2811ef2a0f225 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1051119908
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 433fa28702fd7628c7b48c18385ec8c4700ec2b8 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800)
* 59331875dcbfb6d64a6cca6e2794c7be565bc97d 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 removed a comment on pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1051121868
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 433fa28702fd7628c7b48c18385ec8c4700ec2b8 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800)
* 59331875dcbfb6d64a6cca6e2794c7be565bc97d Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1051220692
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 59331875dcbfb6d64a6cca6e2794c7be565bc97d Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1051280091
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 59331875dcbfb6d64a6cca6e2794c7be565bc97d Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329)
* 2461ceb7bb042694782128370df1e96f05a71391 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1051316141
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2461ceb7bb042694782128370df1e96f05a71391 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1052115832
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2461ceb7bb042694782128370df1e96f05a71391 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330)
* c032433e87c4eccf92b90cea68e2811ef2a0f225 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350)
<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 #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#issuecomment-1052128438
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4800",
"triggerID" : "433fa28702fd7628c7b48c18385ec8c4700ec2b8",
"triggerType" : "PUSH"
}, {
"hash" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6329",
"triggerID" : "59331875dcbfb6d64a6cca6e2794c7be565bc97d",
"triggerType" : "PUSH"
}, {
"hash" : "2461ceb7bb042694782128370df1e96f05a71391",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6330",
"triggerID" : "2461ceb7bb042694782128370df1e96f05a71391",
"triggerType" : "PUSH"
}, {
"hash" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350",
"triggerID" : "c032433e87c4eccf92b90cea68e2811ef2a0f225",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c032433e87c4eccf92b90cea68e2811ef2a0f225 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6350)
<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 a change in pull request #4468: [HUDI-3130] Fixing Hive getSchema for RT tables addressing different partitions having different schemas
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on a change in pull request #4468:
URL: https://github.com/apache/hudi/pull/4468#discussion_r784448964
##########
File path: hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java
##########
@@ -77,19 +74,17 @@ private boolean usesCustomPayload() {
}
/**
- * Goes through the log files in reverse order and finds the schema from the last available data block. If not, falls
+ * Gets schema from HoodieTableMetaClient. If not, falls
* back to the schema from the latest parquet file. Finally, sets the partition column and projection fields into the
* job conf.
*/
- private void init() throws IOException {
- Schema schemaFromLogFile = LogReaderUtils.readLatestSchemaFromLogFiles(split.getBasePath(), split.getDeltaLogFiles(), jobConf);
- if (schemaFromLogFile == null) {
- writerSchema = InputSplitUtils.getBaseFileSchema((FileSplit)split, jobConf);
- LOG.info("Writer Schema From Parquet => " + writerSchema.getFields());
- } else {
- writerSchema = schemaFromLogFile;
- LOG.info("Writer Schema From Log => " + writerSchema.toString(true));
- }
+ private void init() throws Exception {
+
+ HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setConf(split.getPath().getFileSystem(jobConf).getConf()).setBasePath(split.getBasePath()).build();
+ TableSchemaResolver schemaUtil = new TableSchemaResolver(metaClient);
Review comment:
yes. but we also need to be mindful of accessing Metaclient from withiin log record reader. layering does not sit well. why would log record reader instantiate or use Metaclient. may be we can pass in SchemaResolver only from upper layer. I mean, cache at the table/split level and pass that into AbstractLogRecordReaders.
--
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