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

e2e groupby additional tests #1899

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Conversation

itsmekumari
Copy link
Contributor

@itsmekumari itsmekumari commented Dec 6, 2024

This PR contains additional scenarios for e2e coverage of groupBy plugin

@AnkitCLI AnkitCLI added the build Trigger unit test build label Dec 6, 2024
@itsmekumari itsmekumari force-pushed the e2e-tests_groupby branch 2 times, most recently from dbadcbf to a7aa203 Compare December 6, 2024 10:34
@AnkitCLI AnkitCLI marked this pull request as ready for review December 9, 2024 10:50

@Before(order = 1, value = "@GROUPBY_TEST")
public static void createBucketWithGroupByTest2File() throws IOException, URISyntaxException {
gcsSourceBucketName1 = createGCSBucketWithFile(PluginPropertyUtils.pluginProp("groupByGcsCsvTestFile"));
Copy link
Member

Choose a reason for hiding this comment

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

Are we using constant names for source files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we are using constant names for source files and providing the path in plugin parameters file.

@@ -29,3 +29,6 @@ errorLogsMessageDistinctInvalidFields=Spark program 'phase-1' failed with error:
errorLogsMessageDistinctInvalidNumberOfPartitions=Spark program 'phase-1' failed with error: Unable to create config \
for batchaggregator Distinct 'numPartitions' is invalid: Value of field class io.cdap.plugin.\
batch.aggregator.AggregatorConfig.numPartitions is expected to be a number.. Please check the system logs for more details.
errorLogsMessageGroupByInvalidFields=Spark program 'phase-1' failed with error: null.
Copy link
Member

Choose a reason for hiding this comment

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

This error message signifies nothing and does not help in any kind of validation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no specific error shown in logs when providing invalid field/aggregates value set as macro.
Screenshot 2024-12-10 at 11 30 17 AM
Screenshot 2024-12-10 at 11 28 09 AM

Copy link
Member

Choose a reason for hiding this comment

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

Created a JIRA: https://cdap.atlassian.net/browse/PLUGIN-1828 to provide proper error message.

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 Thanks!

@psainics psainics merged commit 9bf6896 into cdapio:develop Dec 10, 2024
5 checks passed
@psainics psainics deleted the e2e-tests_groupby branch December 10, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Trigger unit test build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants