diff --git a/bigquery/google/cloud/bigquery/job.py b/bigquery/google/cloud/bigquery/job.py index 4a5f0e744e04..084181cdf757 100644 --- a/bigquery/google/cloud/bigquery/job.py +++ b/bigquery/google/cloud/bigquery/job.py @@ -2862,7 +2862,7 @@ def _format_for_exception(query, job_id): lines = query.splitlines() max_line_len = max(len(l) for l in lines) - header = "-----Offending SQL Follows-----" + header = "-----Query Job SQL Follows-----" header = "{:^{total_width}}".format(header, total_width=max_line_len + 5) # Print out a "ruler" above and below the SQL so we can judge columns. diff --git a/bigquery/tests/unit/test_job.py b/bigquery/tests/unit/test_job.py index 6e1b99d9c18a..1e75373c84b6 100644 --- a/bigquery/tests/unit/test_job.py +++ b/bigquery/tests/unit/test_job.py @@ -4288,7 +4288,7 @@ def test_result_error(self): full_text = str(exc_info.exception) assert job.job_id in full_text - assert "Offending SQL Follows" in full_text + assert "Query Job SQL Follows" in full_text for i, line in enumerate(query.splitlines(), start=1): expected_line = "{}:{}".format(i, line)