Enhance GaussDB Compatibility and Optimize Test Suite #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request addresses compatibility issues with GaussDB, removes unsupported features, and optimizes the test suite for improved reliability and performance. Key changes include removing the
test_multirange.py
test file due to GaussDB's incompatibility with multirange types, simplifying server-side float rounding logic, enhancing timezone and binary format handling for datetime types, and adjusting test fixtures to function scope for better test isolation.Changes
test_multirange.py
: Deleted the test file (436 lines) as GaussDB does not support multirange types, ensuring compatibility with the target database._server_rounds
: Modifiedfix_faker.py
to always returnTrue
for float rounding checks, removing unnecessary server version checks.test_datetime.py
to enhance timezone and binary format handling:timestamptz
tests.testcomp
andtestrange
fixtures intest_composite.py
andtest_range.py
to function scope to ensure proper initialization of composite and range types, improving test reliability.test_string.py
to skiptest_dump_zero
when usingPyFormat.BINARY
on GaussDB, as it allows null characters in strings.master
branch to incorporate the latest changes.Impact
Notes