Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Ingestion and Processing refactor #19

Conversation

ShwethaSNayak
Copy link
Contributor

@ShwethaSNayak ShwethaSNayak commented Nov 10, 2023

Description:
At present logic for read files and ingest events to Pravega looks similar across below file types.
- CSV - log files
- parquet files
- raw files

What code does:

  1. FieIngest and FileProcessor Abstract class which share common code base across file types.
  2. Extended classes for specific file types which implements methods which are specific to file types.
  3. Junit testing.

Signed-off-by: Shwetha N <[email protected]>
Signed-off-by: Shwetha N <[email protected]>
Signed-off-by: Shwetha N <[email protected]>
Copy link
Contributor

@sachin-j-joshi sachin-j-joshi left a comment

Choose a reason for hiding this comment

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

LGTM.

There are some minor comments.

  1. Please add comments to all public classes/interfaces/methods
  2. Wherever possible Pass interface arguments instead of concrete classes
  3. Remove commented out code if not relevant/needed anymore

This is a significant change. Let's test it end to end thoroughly.

config = new FileConfig("tset.db","/opt/pravega-sensor-collector/Files/A","parquet","key12",
"stream1","{}",10, false,
true,20.0,"RawFileIngestService");
/*writer = EventWriter.create(
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove commented code

@ShwethaSNayak ShwethaSNayak marked this pull request as ready for review November 20, 2023 10:15
@sachin-j-joshi sachin-j-joshi merged commit 3ccd4ef into pravega:stability-improvements Nov 20, 2023
1 check passed
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