Skip to content

Conversation

@zhangyue19921010
Copy link
Contributor

@zhangyue19921010 zhangyue19921010 commented May 15, 2023

Change Logs

Hudi spark 3.0.x adoption. Looks like we did had the support for spark3.0 in 0.9.0, and later removed it. But due to interest from the community users, we are adding it back.

Impact

Hudi spark 3.0.x adoption

Risk level (write none, low medium or high below)

low

Documentation Update

Describe any necessary documentation update if there is any new feature, config, or user-facing change

  • The config description must be updated if new configs are added or the default value of the configs are changed
  • Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
    ticket number here and follow the instruction to make
    changes to the website.

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@zhangyue19921010 zhangyue19921010 changed the title [Do Not Merge][WIP][Test] Hudi spark 3.0.x adoption [Hudi-6212][Do Not Merge][WIP][Test] Hudi spark 3.0.x adoption May 15, 2023
@zhangyue19921010 zhangyue19921010 changed the title [Hudi-6212][Do Not Merge][WIP][Test] Hudi spark 3.0.x adoption [Hudi-6212] Do Not Merge Test Hudi spark 3.0.x adoption May 15, 2023
@zhangyue19921010 zhangyue19921010 changed the title [Hudi-6212] Do Not Merge Test Hudi spark 3.0.x adoption [HUDI-6212][Do Not Merge][Test] Hudi spark 3.0.x adoption May 15, 2023
trait HoodieSpark3CatalystExpressionUtils extends HoodieCatalystExpressionUtils
with PredicateHelper {

override def normalizeExprs(exprs: Seq[Expression], attributes: Seq[Attribute]): Seq[Expression] =
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DataSourceStrategy.normalizeExprs(exprs, attributes) are not included in spark3.0. So that we need to remove this specific implement in spark3-common space.

override def normalizeExprs(exprs: Seq[Expression], attributes: Seq[Attribute]): Seq[Expression] =
DataSourceStrategy.normalizeExprs(exprs, attributes)

override def extractPredicatesWithinOutputSet(condition: Expression,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extractPredicatesWithinOutputSet are not included in spark3.0. So that we need to remove this specific implement in spark3-common space.

case plan if !plan.resolved => None
// NOTE: When resolving Hudi table we allow [[Filter]]s and [[Project]]s be applied
// on top of it
case PhysicalOperation(_, _, DataSourceV2Relation(v2: V2TableWithV1Fallback, _, _, _, _)) if isHoodieTable(v2.v1Table) =>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

V2TableWithV1Fallback are not included in spark3.0. So that we need to remove this specific implement in spark3-common space.

case NONE => "NONE"
case DISK_ONLY => "DISK_ONLY"
case DISK_ONLY_2 => "DISK_ONLY_2"
case DISK_ONLY_3 => "DISK_ONLY_3"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISK_ONLY_3 are not included in spark3.0. So that we need to remove this specific implement in spark3-common space.

@yihua yihua changed the title [HUDI-6212][Do Not Merge][Test] Hudi spark 3.0.x adoption [HUDI-6212] Hudi spark 3.0.x adoption May 18, 2023
Copy link
Contributor

@yihua yihua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM

@yihua yihua added dependencies Dependency updates engine:spark Spark integration labels May 19, 2023
@yihua yihua self-assigned this May 19, 2023
@yihua yihua changed the title [HUDI-6212] Hudi spark 3.0.x adoption [HUDI-6212] Hudi Spark 3.0.x integration May 19, 2023
@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@yihua
Copy link
Contributor

yihua commented May 19, 2023

Azure CI is green.
Screenshot 2023-05-19 at 15 08 27

@yihua yihua merged commit 11aee96 into apache:master May 19, 2023
zhangyue19921010 added a commit to zhangyue19921010/hudi that referenced this pull request May 20, 2023
CONFLUENT_VERSION=5.5.12
KAFKA_CONNECT_HDFS_VERSION=10.1.13
IMAGE_TAG=flink1146hive313spark302
elif [[ ${SPARK_RUNTIME} == 'spark3.1.3' ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the tag flink1146hive313spark302 needs to be prefabricated, seems no script really build this image.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refer this PR
#8767

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates engine:spark Spark integration

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants