Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Draft
HemangChothani wants to merge 3 commits into
masterMaxxleLLC/google-cloud-python:masterfrom
bigquery_update_table_cmek_extract_table_code_samplesMaxxleLLC/google-cloud-python:bigquery_update_table_cmek_extract_table_code_samplesCopy head branch name to clipboard
Draft

refactor(bigquery): add extract table and table cmek operations#101
HemangChothani wants to merge 3 commits into
masterMaxxleLLC/google-cloud-python:masterfrom
bigquery_update_table_cmek_extract_table_code_samplesMaxxleLLC/google-cloud-python:bigquery_update_table_cmek_extract_table_code_samplesCopy head branch name to clipboard

Conversation

@HemangChothani

Copy link
Copy Markdown
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

@IlyaFaer IlyaFaer left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.