Skip to content

Fix duckdb integration test#12537

Merged
lukasmasuch merged 2 commits intodevelopfrom
fix/duckdb-integration-test
Sep 16, 2025
Merged

Fix duckdb integration test#12537
lukasmasuch merged 2 commits intodevelopfrom
fix/duckdb-integration-test

Conversation

@lukasmasuch
Copy link
Copy Markdown
Collaborator

Describe your changes

The duckdb relation name got updated in the latest release. This adds support for the new to get our integration tests running again.

Testing Plan

  • Existing tests should cover this well.

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@snyk-io
Copy link
Copy Markdown
Contributor

snyk-io bot commented Sep 16, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@lukasmasuch lukasmasuch added security-assessment-completed change:bugfix PR contains bug fix implementation impact:users PR changes affect end users labels Sep 16, 2025
@lukasmasuch lukasmasuch requested a review from Copilot September 16, 2025 15:21
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 16, 2025

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-12537/streamlit-1.49.1-py3-none-any.whl
🕹️ Preview app pr-12537.streamlit.app (☁️ Deploy here if not accessible)

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a DuckDB integration test by updating the DuckDB relation type detection to support both the new and legacy relation type names. The latest DuckDB release changed the internal type name from duckdb.duckdb.DuckDBPyRelation to _duckdb.DuckDBPyRelation.

  • Adds support for the new DuckDB relation type name _duckdb.DuckDBPyRelation
  • Maintains backward compatibility with the legacy type name duckdb.duckdb.DuckDBPyRelation
  • Improves test error messaging to show the actual type when assertion fails

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
lib/streamlit/dataframe_util.py Adds new DuckDB relation type constant and updates is_duckdb_relation function to check both new and legacy types
lib/tests/streamlit/dataframe_util_test.py Enhances test assertion with better error message showing actual type when check fails

Copy link
Copy Markdown
Contributor

@sfc-gh-nbellante sfc-gh-nbellante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@lukasmasuch lukasmasuch merged commit 52fb294 into develop Sep 16, 2025
42 of 43 checks passed
@lukasmasuch lukasmasuch deleted the fix/duckdb-integration-test branch September 16, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation impact:users PR changes affect end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants