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

GCS Source additional scenarios. #1470

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

bijay27bit
Copy link

@itsankit-google Please review the GCS source additional scenarios.

Thanks

Copy link

google-cla bot commented Dec 9, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@itsankit-google itsankit-google added the build Trigger unit test build label Dec 9, 2024
Copy link
Member

@itsankit-google itsankit-google left a comment

Choose a reason for hiding this comment

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

why can't we combine scenarios To verify successful records transfer from GCS source to BigQuery sink with macro fields enabled at source and To verify successful data transfer from GCS to BigQuery with macro Path Field?

@bijay27bit
Copy link
Author

why can't we combine scenarios To verify successful records transfer from GCS source to BigQuery sink with macro fields enabled at source and To verify successful data transfer from GCS to BigQuery with macro Path Field?

Thanks Ankit,

The test data used for the 'path field' was not supported. Following an internal discussion with the team, a separate scenario was created to ensure coverage.

@itsankit-google
Copy link
Member

why can't we combine scenarios To verify successful records transfer from GCS source to BigQuery sink with macro fields enabled at source and To verify successful data transfer from GCS to BigQuery with macro Path Field?

Thanks Ankit,

The test data used for the 'path field' was not supported. Following an internal discussion with the team, a separate scenario was created to ensure coverage.

What do you mean by testdata not supported? @itsmekumari @AnkitCLI can you provide more clarification?

Copy link
Member

@itsankit-google itsankit-google left a comment

Choose a reason for hiding this comment

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

PTAL at test failures.

@itsmekumari
Copy link
Contributor

why can't we combine scenarios To verify successful records transfer from GCS source to BigQuery sink with macro fields enabled at source and To verify successful data transfer from GCS to BigQuery with macro Path Field?

Thanks Ankit,
The test data used for the 'path field' was not supported. Following an internal discussion with the team, a separate scenario was created to ensure coverage.

What do you mean by testdata not supported? @itsmekumari @AnkitCLI can you provide more clarification?

I think, reference was taken from the existing test case for path field scenario. @bijay27bit you can add any path field column name and add the same in output schema which is set as macro in same scenario.

@bijay27bit
Copy link
Author

why can't we combine scenarios To verify successful records transfer from GCS source to BigQuery sink with macro fields enabled at source and To verify successful data transfer from GCS to BigQuery with macro Path Field?

Thanks Ankit,
The test data used for the 'path field' was not supported. Following an internal discussion with the team, a separate scenario was created to ensure coverage.

What do you mean by testdata not supported? @itsmekumari @AnkitCLI can you provide more clarification?

I think, reference was taken from the existing test case for path field scenario. @bijay27bit you can add any path field column name and add the same in output schema which is set as macro in same scenario.

Merged both the scenario and it is running at local branch now. Looking below test failures as per Ankit's comment. Thanks

@itsankit-google
Copy link
Member

PTAL at test failures.

Also the count of records transferred is zero in failing tests, not sure if it is expected.
image

@bijay27bit
Copy link
Author

PTAL at test failures.

Also the count of records transferred is zero in failing tests, not sure if it is expected. image

Hi @itsankit-google I have made the changes and above failed test scenarios are not created by me. Please review the latest code. Thanks

Then Validate the values of records transferred from GCS bucket file is equal to the values of target BigQuery table

@GCS_CSV_TEST @BQ_SINK_TEST @BigQuery_Sink_Required
Scenario:To verify successful records transfer from GCS source to BigQuery sink with macro fields enabled at source
Copy link
Member

Choose a reason for hiding this comment

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

No of records transferred is 0 in this test, is it expected?

image

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