You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "lokeshj1703 (via GitHub)" <gi...@apache.org> on 2023/06/15 07:39:59 UTC
[GitHub] [hudi] lokeshj1703 opened a new pull request, #8982: [HUDI-6380] Add API to fetch transformed schema in Transformer
lokeshj1703 opened a new pull request, #8982:
URL: https://github.com/apache/hudi/pull/8982
### Change Logs
The jira aims to add a new API for fetching transformed schema in the Transformer.
### Impact
NA
### Risk level (write none, low medium or high below)
low
### Documentation Update
NA
### Contributor's checklist
- [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] codope commented on a diff in pull request #8982: [HUDI-6380] Add API to fetch transformed schema in Transformer
Posted by "codope (via GitHub)" <gi...@apache.org>.
codope commented on code in PR #8982:
URL: https://github.com/apache/hudi/pull/8982#discussion_r1231809984
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/transform/ChainedTransformer.java:
##########
@@ -112,6 +118,30 @@ private void validateIdentifier(String id, Set<String> identifiers, String confi
}
}
+ private StructType getExpectedTransformedSchema(TransformerInfo transformerInfo, JavaSparkContext jsc, SparkSession sparkSession,
+ Option<StructType> incomingStructOpt, Option<Dataset<Row>> rowDatasetOpt, TypedProperties properties) {
+ if (!sourceSchemaOpt.isPresent() && !rowDatasetOpt.isPresent()) {
Review Comment:
Should it be an `||` instead of `&&`? Don't we want both schema and row dataset to be present?
--
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 #8982: [HUDI-6380] Add API to fetch transformed schema in Transformer
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8982:
URL: https://github.com/apache/hudi/pull/8982#issuecomment-1592555193
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "f275d85204507349b1b18fc87406fd7d2ffc0d04",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=17875",
"triggerID" : "f275d85204507349b1b18fc87406fd7d2ffc0d04",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f275d85204507349b1b18fc87406fd7d2ffc0d04 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=17875)
<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 #8982: [HUDI-6380] Add API to fetch transformed schema in Transformer
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8982:
URL: https://github.com/apache/hudi/pull/8982#issuecomment-1592986798
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "f275d85204507349b1b18fc87406fd7d2ffc0d04",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=17875",
"triggerID" : "f275d85204507349b1b18fc87406fd7d2ffc0d04",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f275d85204507349b1b18fc87406fd7d2ffc0d04 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=17875)
<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 #8982: [HUDI-6380] Add API to fetch transformed schema in Transformer
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8982:
URL: https://github.com/apache/hudi/pull/8982#issuecomment-1594153539
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "f275d85204507349b1b18fc87406fd7d2ffc0d04",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=17875",
"triggerID" : "f275d85204507349b1b18fc87406fd7d2ffc0d04",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f275d85204507349b1b18fc87406fd7d2ffc0d04 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=17875)
<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] codope merged pull request #8982: [HUDI-6380] Add API to fetch transformed schema in Transformer
Posted by "codope (via GitHub)" <gi...@apache.org>.
codope merged PR #8982:
URL: https://github.com/apache/hudi/pull/8982
--
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 #8982: [HUDI-6380] Add API to fetch transformed schema in Transformer
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8982:
URL: https://github.com/apache/hudi/pull/8982#issuecomment-1594146977
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "f275d85204507349b1b18fc87406fd7d2ffc0d04",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "f275d85204507349b1b18fc87406fd7d2ffc0d04",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f275d85204507349b1b18fc87406fd7d2ffc0d04 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 #8982: [HUDI-6380] Add API to fetch transformed schema in Transformer
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8982:
URL: https://github.com/apache/hudi/pull/8982#issuecomment-1592542078
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "f275d85204507349b1b18fc87406fd7d2ffc0d04",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "f275d85204507349b1b18fc87406fd7d2ffc0d04",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f275d85204507349b1b18fc87406fd7d2ffc0d04 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] lokeshj1703 commented on a diff in pull request #8982: [HUDI-6380] Add API to fetch transformed schema in Transformer
Posted by "lokeshj1703 (via GitHub)" <gi...@apache.org>.
lokeshj1703 commented on code in PR #8982:
URL: https://github.com/apache/hudi/pull/8982#discussion_r1231818382
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/transform/ChainedTransformer.java:
##########
@@ -112,6 +118,30 @@ private void validateIdentifier(String id, Set<String> identifiers, String confi
}
}
+ private StructType getExpectedTransformedSchema(TransformerInfo transformerInfo, JavaSparkContext jsc, SparkSession sparkSession,
+ Option<StructType> incomingStructOpt, Option<Dataset<Row>> rowDatasetOpt, TypedProperties properties) {
+ if (!sourceSchemaOpt.isPresent() && !rowDatasetOpt.isPresent()) {
Review Comment:
We need only one of these. If source schema is present we can use it directly else we can infer schema from the row dataset available.
--
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 diff in pull request #8982: [HUDI-6380] Add API to fetch transformed schema in Transformer
Posted by "codope (via GitHub)" <gi...@apache.org>.
codope commented on code in PR #8982:
URL: https://github.com/apache/hudi/pull/8982#discussion_r1231821022
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/transform/ChainedTransformer.java:
##########
@@ -112,6 +118,30 @@ private void validateIdentifier(String id, Set<String> identifiers, String confi
}
}
+ private StructType getExpectedTransformedSchema(TransformerInfo transformerInfo, JavaSparkContext jsc, SparkSession sparkSession,
+ Option<StructType> incomingStructOpt, Option<Dataset<Row>> rowDatasetOpt, TypedProperties properties) {
+ if (!sourceSchemaOpt.isPresent() && !rowDatasetOpt.isPresent()) {
Review Comment:
Thanks for the clarification.
--
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