Skip to content

Unit Test Failure in test_introspection.py due to unsupported CREATE TABLE INHERITS syntax #11

@setoru

Description

@setoru

Description:
When executing the test case tests/test_introspection.py::TestIntrospection::test_introspection_on_large_db, an async_gaussdb.exceptions.FeatureNotSupportedError is thrown. The error indicates that the CREATE TABLE ... INHERITS syntax is not yet supported.

Logs:

Traceback (most recent call last):
  File "/usr/lib64/python3.9/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib64/python3.9/unittest/case.py", line 592, in run
    self._callTestMethod(testMethod)
  File "/usr/lib64/python3.9/unittest/case.py", line 550, in _callTestMethod
    method()
  File "/home/gaussdbUser/gaussdb-python-async/.venv/lib64/python3.9/site-packages/async_gaussdb/_testbase/__init__.py", line 92, in wrapper
    self.loop.run_until_complete(coro)
  File "/usr/lib64/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/home/gaussdbUser/gaussdb-python-async/tests/test_introspection.py", line 74, in test_introspection_on_large_db
    await self.con.execute(
  File "/home/gaussdbUser/gaussdb-python-async/.venv/lib64/python3.9/site-packages/async_gaussdb/connection.py", line 350, in execute
    result = await self._protocol.query(query, timeout)
  File "async_gaussdb/protocol/protocol.pyx", line 375, in query
    return await waiter
async_gaussdb.exceptions.FeatureNotSupportedError: CREATE TABLE ... INHERITS is not yet supported.

How to reproduce it:

pytest --durations=0 -s -v tests/test_introspection.py

Expected Behavior
Test pass.

Actual Behavior
The test fails with async_gaussdb.exceptions.FeatureNotSupportedError due to the use of unsupported CREATE TABLE ... INHERITS syntax.

Environment

  • OS: Huawei Cloud EulerOS 2.0
  • Python Version: 3.9
  • Database: GaussDB Kernel 505.2.1.SPC0800 build 3e43b3bc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions