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

refactor(bigquery): add extract table and table cmek operations #101

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

HemangChothani
Copy link
Collaborator

Towards[8989]

List of changes:

  1. create_table_cmek
  2. update_table_cmek
  3. extract_table.py
  4. extract_table_compressed
  5. extract_table_json

Copy link
Collaborator

@IlyaFaer IlyaFaer left a comment

Choose a reason for hiding this comment

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

I'm little bit lost in all the rules for this refactoring, but LGTM
Only too many empty lines I think



def test_create_table_cmek(capsys, random_table_id, kms_key_name):

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why an empty line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@IlyaFaer just following the structure and rules as , all files has one blank line after method declaration and pep8 for two blank line between import and method declaration.

out, _ = capsys.readouterr()
assert "Exported {} ".format(table_with_data_id) in out
assert blob.exists
assert blob.size > 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

In fact you can write just assert blob.size as it's not going to be negative, and it'll give True for all positive numbers

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@IlyaFaer Ok, but i i didn't change that assert , i keep as it is as it was before.

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