Thanks to visit codestin.com
Credit goes to github.com

Skip to content

compliance tests failing on HEAD #386

@tswast

Description

@tswast

#384 (comment)

_____ ERROR at setup of OrderByLabelTest_bigquery+bigquery.test_plain_desc _____
Traceback (most recent call last):
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/cloud/bigquery/dbapi/cursor.py", line 203, in _execute
    self._query_job.result()
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/cloud/bigquery/job/query.py", line 1447, in result
    do_get_result()
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/api_core/retry.py", line 283, in retry_wrapped_func
    return retry_target(
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/api_core/retry.py", line 190, in retry_target
    return target()
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/cloud/bigquery/job/query.py", line 1437, in do_get_result
    super(QueryJob, self).result(retry=retry, timeout=timeout)
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/cloud/bigquery/job/base.py", line 727, in result
    return super(_AsyncJob, self).result(timeout=timeout, **kwargs)
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/api_core/future/polling.py", line 137, in result
    raise self._exception
google.api_core.exceptions.BadRequest: 400 Column x is not present in table some_table at [1:33]

(job ID: c06755d8-6461-487e-84f2-03d4b9d2c703)

                                -----Query Job SQL Follows-----

    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |
   1:INSERT INTO `some_table` (`id`, `x`, `y`, `q`, `p`) VALUES (@`id`, @`x`, @`y`, @`q`, @`p`)
    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1782, in _execute_context
    self.dialect.do_executemany(
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 729, in do_executemany
    cursor.executemany(statement, parameters)
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/cloud/bigquery/dbapi/_helpers.py", line 495, in with_closed_check
    return method(self, *args, **kwargs)
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/cloud/bigquery/dbapi/cursor.py", line 231, in executemany
    self._execute(
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/cloud/bigquery/dbapi/cursor.py", line 205, in _execute
    raise exceptions.DatabaseError(exc)
google.cloud.bigquery.dbapi.exceptions.DatabaseError: 400 Column x is not present in table some_table at [1:33]

(job ID: c06755d8-6461-487e-84f2-03d4b9d2c703)

                                -----Query Job SQL Follows-----

    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |
   1:INSERT INTO `some_table` (`id`, `x`, `y`, `q`, `p`) VALUES (@`id`, @`x`, @`y`, @`q`, @`p`)
    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/sqlalchemy/testing/suite/test_select.py", line 105, in insert_data
    connection.execute(
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1289, in execute
    return meth(self, multiparams, params, _EMPTY_EXECUTION_OPTS)
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/sqlalchemy/sql/elements.py", line 325, in _execute_on_connection
    return connection._execute_clauseelement(
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1481, in _execute_clauseelement
    ret = self._execute_context(
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1845, in _execute_context
    self._handle_dbapi_exception(
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2026, in _handle_dbapi_exception
    util.raise_(
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
    raise exception
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1782, in _execute_context
    self.dialect.do_executemany(
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 729, in do_executemany
    cursor.executemany(statement, parameters)
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/cloud/bigquery/dbapi/_helpers.py", line 495, in with_closed_check
    return method(self, *args, **kwargs)
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/cloud/bigquery/dbapi/cursor.py", line 231, in executemany
    self._execute(
  File "/tmpfs/src/github/python-bigquery-sqlalchemy/.nox/compliance-3-9/lib/python3.9/site-packages/google/cloud/bigquery/dbapi/cursor.py", line 205, in _execute
    raise exceptions.DatabaseError(exc)
sqlalchemy.exc.DatabaseError: (google.cloud.bigquery.dbapi.exceptions.DatabaseError) 400 Column x is not present in table some_table at [1:33]

(job ID: c06755d8-6461-487e-84f2-03d4b9d2c703)

                                -----Query Job SQL Follows-----

    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |
   1:INSERT INTO `some_table` (`id`, `x`, `y`, `q`, `p`) VALUES (@`id`, @`x`, @`y`, @`q`, @`p`)
    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |    .    |
[SQL: INSERT INTO `some_table` (`id`, `x`, `y`, `q`, `p`) VALUES (%(id:INT64)s, %(x:INT64)s, %(y:INT64)s, %(q:STRING)s, %(p:STRING)s)]
[parameters: ({'id': 1, 'x': 1, 'y': 2, 'q': 'q1', 'p': 'p3'}, {'id': 2, 'x': 2, 'y': 3, 'q': 'q2', 'p': 'p2'}, {'id': 3, 'x': 3, 'y': 4, 'q': 'q3', 'p': 'p1'})]
(Background on this error at: https://sqlalche.me/e/14/4xp6)

https://source.cloud.google.com/results/invocations/98c79c9a-dc03-49b5-bba9-db389866d284/targets/cloud-devrel%2Fclient-libraries%2Fpython%2Fgoogleapis%2Fpython-bigquery-sqlalchemy%2Fpresubmit%2Fpresubmit/log

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigqueryIssues related to the googleapis/python-bigquery-sqlalchemy API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions