Skip to content

[HUDI-2277] HoodieDeltaStreamer reading ORC files directly using ORCDFSSource#3413

Merged
xushiyan merged 16 commits intoapache:masterfrom
zhangyue19921010:OrcDFSSource
Sep 29, 2021
Merged

[HUDI-2277] HoodieDeltaStreamer reading ORC files directly using ORCDFSSource#3413
xushiyan merged 16 commits intoapache:masterfrom
zhangyue19921010:OrcDFSSource

Conversation

@zhangyue19921010
Copy link
Contributor

@zhangyue19921010 zhangyue19921010 commented Aug 5, 2021

https://issues.apache.org/jira/projects/HUDI/issues/HUDI-2277

What is the purpose of the pull request

Develop a new Source named ORCDFSSource extended from RowSource

Now, HoodieDeltaStreamer can read orc files directly using ORCDFSSource.

Also add UTs which are necessary and tested on our local env.

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.

@hudi-bot
Copy link
Collaborator

hudi-bot commented Aug 5, 2021

CI report:

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

@zhangyue19921010
Copy link
Contributor Author

@hudi-bot run travis

@zhangyue19921010 zhangyue19921010 changed the title [HUDI-2277] Let HoodieDeltaStreamer reading ORC files directly using ORCDFSSource [HUDI-2277] HoodieDeltaStreamer reading ORC files directly using ORCDFSSource Aug 5, 2021
Copy link
Member

@vinothchandar vinothchandar left a comment

Choose a reason for hiding this comment

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

Just some small comments. We can land once they are addressed

}
}

public static void addAvroRecord(
Copy link
Member

Choose a reason for hiding this comment

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

can this sit somewhere in a test utils class? given its only used by a test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, Done.

}

@Test
public void testORCDFSSourceWithSourceSchemaFileAndNoTransformer() throws Exception {
Copy link
Member

Choose a reason for hiding this comment

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

for sake of test runtime. could we test just 1-2 combos here. most of the testing done for row source (ParquetDFS) should cover already?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, done. Thanks a lot for your review :)

@zhangyue19921010
Copy link
Contributor Author

Hi @vinothchandar sorry to bother you. Since this patch is passed all ut/it. So could you please take a look at your convince? Thanks a lot!

PROPS_FILENAME_TEST_ORC, ORC_SOURCE_ROOT, false);
}

private void prepareORCDFSSource(boolean useSchemaProvider, boolean hasTransformer, String sourceSchemaFile, String targetSchemaFile,
Copy link
Member

Choose a reason for hiding this comment

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

wonder if we can simplify this test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Srue thing. done. thanks a lot for your review.

@zhangyue19921010
Copy link
Contributor Author

@hudi-bot run azure

@nsivabalan
Copy link
Contributor

@zhangyue19921010 : do ping me here once you have addressed all comments. I can take a look.

@zhangyue19921010
Copy link
Contributor Author

@zhangyue19921010 : do ping me here once you have addressed all comments. I can take a look.

Hi @nsivabalan Thanks a lot for your review. I finished all the changes. PTAL :)

@zhangyue19921010
Copy link
Contributor Author

Hi @nsivabalan @vinothchandar. Thanks a lot for your attention, review and approve! Could we land it or what else do I need to do? :)

Copy link
Member

@xushiyan xushiyan left a comment

Choose a reason for hiding this comment

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

LGTM. some minor code suggestions. Please go ahead and merge once fixed and Azure CI passed. Thanks.

Copy link
Member

@xushiyan xushiyan left a comment

Choose a reason for hiding this comment

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

@zhangyue19921010 we're almost there :) just 1 more nitpick. thanks for making the feature.

@zhangyue19921010
Copy link
Contributor Author

Hi @xushiyan Thanks a lot for your attention and review. My bad for misunderstanding :) code changed and waiting for ci/cd green.

@xushiyan xushiyan merged commit dd1bd62 into apache:master Sep 29, 2021
prashantwason pushed a commit to prashantwason/incubator-hudi that referenced this pull request Jan 5, 2026
…FSSource (apache#3413)

* add ORCDFSSource to support reading orc file into hudi format && add UTs

* remove ununsed import

* simplify tes

* code review

* code review

* code review

* code review

* code review

* code review

Co-authored-by: yuezhang <yuezhang@freewheel.tv>
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.

5 participants