Skip to content

Conversation

@plamut
Copy link
Contributor

@plamut plamut commented Sep 13, 2021

Closes #958.

FWIW, I actually hit the very same test flakiness today, thus adding more info to Job representation will indeed be helpful for investigation.

PR checklist:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

@plamut plamut requested review from a team and tswast September 13, 2021 13:16
@plamut plamut requested a review from a team as a code owner September 13, 2021 13:16
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 13, 2021
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Sep 13, 2021
Comment on lines +727 to +729
f"{self.__class__.__name__}<"
f"project={self.project}, location={self.location}, id={self.job_id}"
">"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note - I chose chevrons over parentheses so that the repr string does not appear as something eval()-able, as it's often the case with repr() output.

Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense, thanks.

Comment on lines +727 to +729
f"{self.__class__.__name__}<"
f"project={self.project}, location={self.location}, id={self.job_id}"
">"
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense, thanks.

@tswast tswast merged commit acca1cb into googleapis:main Sep 13, 2021
@plamut plamut deleted the iss-958 branch September 13, 2021 21:11
abdelmegahedgoogle pushed a commit to abdelmegahedgoogle/python-bigquery that referenced this pull request Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: repr of QueryJob (and other jobs) should include job reference info (project ID, location, job ID)

2 participants