Skip to content

Comments

[HUDI-3745] Support for spark datasource options in S3EventsHoodieInc…#5170

Merged
nsivabalan merged 1 commit intoapache:masterfrom
harsh1231:HUDI-3745
Mar 30, 2022
Merged

[HUDI-3745] Support for spark datasource options in S3EventsHoodieInc…#5170
nsivabalan merged 1 commit intoapache:masterfrom
harsh1231:HUDI-3745

Conversation

@harsh1231
Copy link
Contributor

@harsh1231 harsh1231 commented Mar 29, 2022

Support for spark datasource options in S3EventsHoodieIncrSource
While reading from spark file datasource, reader options could be provided in deltastreamer like
- --hoodie-conf hoodie.deltastreamer.source.s3incr.spark.datasource.options={"header":"true","encoding":"UTF-8"}

Tips

What is the purpose of the pull request

(For example: This pull request adds quick-start document.)

Brief change log

(for example:)

  • Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request

(Please pick either of the following options)

This pull request is a trivial rework / code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end.
  • Added HoodieClientWriteTest to verify the change.
  • Manually verified the change by running a job locally.

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.

@harsh1231 harsh1231 marked this pull request as draft March 29, 2022 19:48
@harsh1231 harsh1231 marked this pull request as ready for review March 29, 2022 19:55
Copy link
Contributor

@nsivabalan nsivabalan left a comment

Choose a reason for hiding this comment

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

Have you tested the patch ?

@harsh1231 harsh1231 force-pushed the HUDI-3745 branch 2 times, most recently from b47ecd2 to 5721b60 Compare March 29, 2022 20:14
@harsh1231
Copy link
Contributor Author

Have you tested the patch ?

@nsivabalan Yes

/**
*{@value #SPARK_DATASOURCE_OPTIONS} is json string, passed to the reader while loading dataset.
* Example delta streamer conf
* - --hoodie-conf hoodie.deltastreamer.source.hoodieincr.spark.datasource.options={"header":"true","encoding":"UTF-8"}
Copy link
Contributor

Choose a reason for hiding this comment

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

sorry. lets fix the config name.
hoodie.deltastreamer.source.s3incr.spark.datasource.options

@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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants