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

#1571 Issue: adopt Best practice for Google Sheets Source #1668

Merged
merged 2 commits into from Jan 18, 2021

Conversation

yevhenii-ldv
Copy link
Contributor

@yevhenii-ldv yevhenii-ldv commented Jan 15, 2021

What

Adopt Best practice for Google Sheets Source.

Checklist

  • Check connection verifies permissions upfront.
  • Check connection failure emits actionable error messages.
  • If API connector: integration tests validate that every stream outputs data (you may need to seed the underlying API with fake data).
  • If API connector: backs off on hitting rate limits (instead of just failing/exiting)
  • If API connector: implements incremental sync (where possible -- not all streams will allow this)

@@ -119,8 +123,7 @@ def read(

for row in row_values:
if Helpers.is_row_empty(row):
encountered_blank_row = True
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure about the correctness of these changes, but the previous code stopped reading data after it found one empty line, for example, if after the header line there is an empty line and then data, then we do not read this data. I made it so that all data in a specific ROW_BACTH_SIZE was read, and the cycle was interrupted when there were no records in this values_range.
Let me know please, if this is not the correct logic, I will revert the code to the previous state.

Copy link
Contributor

@sherifnada sherifnada left a comment

Choose a reason for hiding this comment

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

LGTM, will merge tomorrow.

@sherifnada sherifnada merged commit 0eea5bc into master Jan 18, 2021
@sherifnada sherifnada deleted the ykurochkin/best-practice-google-sheets-source branch January 18, 2021 18:24
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.

None yet

2 participants