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

SAT: Improve message about errors in stream's schema #6934

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

Zirochkaa
Copy link
Contributor

@Zirochkaa Zirochkaa commented Oct 9, 2021

What

Closes #6933.

Now it looks like this:

image

@Zirochkaa Zirochkaa self-assigned this Oct 9, 2021
@Zirochkaa Zirochkaa temporarily deployed to more-secrets October 9, 2021 17:51 Inactive
@@ -201,7 +201,7 @@ def _validate_schema(records: List[AirbyteRecordMessage], configured_catalog: Co
for stream_name, errors in streams_errors.items():
errors = map(str, errors.values())
str_errors = f"\n{bar}\n".join(errors)
logging.error(f"The {stream_name} stream has the following schema errors:\n{str_errors}")
logging.error(f"\nThe {stream_name} stream has the following schema errors:\n{str_errors}")
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a strange way to do this, is it possible to place the newline on the previous log line instead of the new log line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This part:
image
is being added automatically by logging.error().

And what we pass to logging.error() will be right next to above text:
image

So we can't place the newline on the previous log line instead of the new log line.

Copy link
Contributor

Choose a reason for hiding this comment

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

got it. thanks for the explanation.

Copy link
Contributor

@davinchia davinchia left a comment

Choose a reason for hiding this comment

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

one non-blocking comment.

@Zirochkaa
Copy link
Contributor Author

Zirochkaa commented Oct 12, 2021

/publish connector=bases/source-acceptance-test

🕑 bases/source-acceptance-test https://github.com/airbytehq/airbyte/actions/runs/1332048473
✅ bases/source-acceptance-test https://github.com/airbytehq/airbyte/actions/runs/1332048473

@jrhizor jrhizor temporarily deployed to more-secrets October 12, 2021 07:25 Inactive
@Zirochkaa Zirochkaa merged commit cb6d66d into master Oct 12, 2021
@Zirochkaa Zirochkaa deleted the oleh/6933-improve-SAT-error-message branch October 12, 2021 07:30
schlattk pushed a commit to schlattk/airbyte that referenced this pull request Jan 4, 2022
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.

SAT: Improve message about errors in the stream's schema
4 participants