Skip to content

Conversation

@coderabbitai
Copy link
Contributor

@coderabbitai coderabbitai bot commented Oct 15, 2025

Unit test generation was requested by @muhammad-ali-e.

The following files were modified:

  • unstract/connectors/tests/databases/test_bigquery_db.py
  • unstract/connectors/tests/databases/test_utils.py
  • workers/shared/tests/__init__.py
  • workers/shared/tests/infrastructure/__init__.py
  • workers/shared/tests/infrastructure/database/__init__.py
  • workers/shared/tests/infrastructure/database/test_utils.py

muhammad-ali-e and others added 5 commits October 15, 2025 19:37
…tadata serialization

- Added BigQuery-specific float sanitization with IEEE 754 double precision safe zone
- Consolidated duplicate float sanitization logic into shared utilities
- Fixed insertion errors caused by floats with >15 significant figures

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Changed 'if sanitized_value' to 'if sanitized_value is not None'
- Prevents empty dicts {}, empty lists [], and zero values from becoming None
- Addresses CodeRabbit AI feedback on PR #1593

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@coderabbitai
Copy link
Contributor Author

coderabbitai bot commented Oct 15, 2025

Important

Review skipped

CodeRabbit bot authored PR detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
8.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@chandrasekharan-zipstack
Copy link
Contributor

@muhammad-ali-e can we make it generate based on pytest and in a way it can run with our existing testing action?

Base automatically changed from fix/UN-2882-bigquery-float-precision to main October 16, 2025 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants