Skip to content

feat(ibis): upgrade ibis to canner/10.5.1#1215

Merged
douenergy merged 6 commits intoCanner:mainfrom
goldmedal:chore/self-host-ibis-10.5.1
Jun 9, 2025
Merged

feat(ibis): upgrade ibis to canner/10.5.1#1215
douenergy merged 6 commits intoCanner:mainfrom
goldmedal:chore/self-host-ibis-10.5.1

Conversation

@goldmedal
Copy link
Copy Markdown
Contributor

@goldmedal goldmedal commented Jun 9, 2025

Summary by CodeRabbit

  • Chores

    • Updated the dependency source for the Ibis framework with revised extras, removing Athena support.
  • Tests

    • Added new Oracle test data with various NUMBER column types.
    • Introduced a test to verify correct handling of Oracle NUMBER columns with different precision and scale in query results.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jun 9, 2025

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • ibis-server/poetry.lock is excluded by !**/*.lock

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

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

"""

Walkthrough

The changes update the ibis-framework dependency in the project configuration to use a Git branch and adjust extras. In the Oracle connector test setup, a new table with various NUMBER types is created and populated. An additional async test is added to verify handling and typing of Oracle NUMBER columns in query results.

Changes

File(s) Change Summary
ibis-server/pyproject.toml Updated ibis-framework dependency to use a Git branch; removed "athena" from extras list.
ibis-server/tests/routers/v3/connector/oracle/conftest.py Extended Oracle fixture: creates and populates a test_number table with various NUMBER columns.
ibis-server/tests/routers/v3/connector/oracle/test_query.py Added async test test_query_number_scale to validate NUMBER column handling in query results.

Sequence Diagram(s)

sequenceDiagram
    participant Test as test_query_number_scale
    participant Client as TestClient
    participant API as /query Endpoint
    participant DB as Oracle Database

    Test->>Client: Prepare manifest & SQL, send POST /query
    Client->>API: POST /query with manifest and SQL
    API->>DB: Execute SQL on Oracle (SELECT from TestNumber)
    DB-->>API: Return row with NUMBER columns
    API-->>Client: Respond with data, column types
    Client-->>Test: Return response for assertions
Loading

Suggested reviewers

  • douenergy

Poem

In the garden of code, the carrots are new,
A Git branch for Ibis—dependencies grew!
Oracle numbers now tested with care,
Precision and scale float through the air.
With every new table and test we compose,
Our burrow of features continues to grow! 🥕


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added ibis dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jun 9, 2025
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🔭 Outside diff range comments (1)
ibis-server/pyproject.toml (1)

13-22: 💡 Verification agent

🧩 Analysis chain

Verify git dependency compatibility and consider using HTTPS URL.

The change from a fixed version to a git branch dependency raises several concerns:

  1. SSH URL compatibility: The git@github.com: URL requires SSH keys, which may not be available in all deployment environments (CI/CD, Docker builds, etc.)
  2. Stability: Using a branch instead of a tagged release can introduce instability as the branch content may change
  3. Missing "athena" extra: The removal of the "athena" extra from the list could break existing Athena connector functionality

Consider using an HTTPS URL for broader compatibility:

-ibis-framework = { git = "git@github.com:Canner/ibis.git", branch = "canner/10.5.1", extras = [
+ibis-framework = { git = "https://github.com/Canner/ibis.git", branch = "canner/10.5.1", extras = [

Please run the following script to verify the branch exists and check for any athena-related code that might be affected:


🏁 Script executed:

#!/bin/bash
# Description: Verify git branch exists and check for athena usage

# Check if the branch exists
curl -s https://api.github.com/repos/Canner/ibis/branches/canner/10.5.1 | jq '.name // "Branch not found"'

# Search for athena-related code in the codebase
echo "Searching for athena-related code..."
rg -i "athena" --type py

Length of output: 5270


Fix pyproject.toml git dependency and restore Athena extra

The canner/10.5.1 branch exists, but the current change will break Athena support and may cause CI/CD failures:

  • The SSH URL (git@github.com:…) requires SSH keys in build environments
  • Using a moving branch rather than a tagged release can introduce instability
  • Removing "athena" from extras will break all Athena connector code and tests (there are many references under ibis-server/tests/…/athena)

Please update ibis-server/pyproject.toml as follows:

- ibis-framework = { git = "git@github.com:Canner/ibis.git", branch = "canner/10.5.1", extras = [
+ ibis-framework = { git = "https://github.com/Canner/ibis.git", branch = "canner/10.5.1", extras = [
    "bigquery",
    "clickhouse",
+   "athena",
    "mssql",
    "mysql",
    "oracle",
    "postgres",
    "snowflake",
    "trino",
] }

Optionally, consider pinning to a specific commit or tag for greater stability.

🧹 Nitpick comments (1)
ibis-server/tests/routers/v3/connector/oracle/test_query.py (1)

163-207: Consider extracting manifest for consistency with existing patterns.

The test correctly validates Oracle NUMBER type handling with precision and scale. The assertions for both data values [1, 1234567890, "12345678.12"] and data types are appropriate, especially verifying that the scaled number column (id_p_s) returns as "object" type.

For consistency with other tests in this file, consider extracting the manifest definition:

+test_number_manifest = {
+    "catalog": "my_catalog", 
+    "schema": "my_schema",
+    "dataSource": "oracle",
+    "models": [
+        {
+            "name": "TestNumber",
+            "tableReference": {
+                "schema": "SYSTEM",
+                "table": "TEST_NUMBER", 
+            },
+            "columns": [
+                {"name": "id", "expression": '"ID"', "type": "number"},
+                {"name": "id_p", "expression": '"ID_P"', "type": "number"},
+                {"name": "id_p_s", "expression": '"ID_P_S"', "type": "number"},
+            ],
+            "primaryKey": "id",
+        }
+    ],
+}
+
 async def test_query_number_scale(client, connection_info):
-    manifest_str = {
-        "catalog": "my_catalog",
-        "schema": "my_schema", 
-        "dataSource": "oracle",
-        "models": [
-            {
-                "name": "TestNumber",
-                "tableReference": {
-                    "schema": "SYSTEM",
-                    "table": "TEST_NUMBER",
-                },
-                "columns": [
-                    {"name": "id", "expression": '"ID"', "type": "number"},
-                    {"name": "id_p", "expression": '"ID_P"', "type": "number"},
-                    {"name": "id_p_s", "expression": '"ID_P_S"', "type": "number"},
-                ],
-                "primaryKey": "id",
-            }
-        ],
-    }
-
-    manifest_str_base64 = base64.b64encode(orjson.dumps(manifest_str)).decode("utf-8")
+    manifest_str_base64 = base64.b64encode(orjson.dumps(test_number_manifest)).decode("utf-8")
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 01e541f and 49b5787.

⛔ Files ignored due to path filters (1)
  • ibis-server/poetry.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • ibis-server/pyproject.toml (1 hunks)
  • ibis-server/tests/routers/v3/connector/oracle/conftest.py (1 hunks)
  • ibis-server/tests/routers/v3/connector/oracle/test_query.py (1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
ibis-server/tests/routers/v3/connector/oracle/test_query.py (3)
ibis-server/tests/conftest.py (1)
  • client (18-23)
ibis-server/tests/routers/v3/connector/oracle/conftest.py (1)
  • connection_info (68-77)
ibis-server/tests/routers/v3/connector/oracle/test_function.py (1)
  • manifest_str (31-32)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: ci
🔇 Additional comments (1)
ibis-server/tests/routers/v3/connector/oracle/conftest.py (1)

52-62: Well-structured test infrastructure for Oracle NUMBER types.

The addition of the test_number table with different NUMBER column configurations (generic NUMBER, NUMBER(10), and NUMBER(10,2)) provides comprehensive test coverage for Oracle's numeric precision and scale handling. The test data values are well-chosen to validate the different scenarios.

@github-actions github-actions bot added the ci label Jun 9, 2025
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 49b5787 and 296c3a4.

📒 Files selected for processing (1)
  • .github/workflows/ibis-ci.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: ci

@goldmedal goldmedal force-pushed the chore/self-host-ibis-10.5.1 branch from 4d9942a to 57fdb7a Compare June 9, 2025 04:23
@goldmedal goldmedal requested a review from douenergy June 9, 2025 06:39
pydantic = "2.10.6"
ibis-framework = { version = "10.3.1", extras = [
"athena",
ibis-framework = { git = "https://github.com/Canner/ibis.git", branch = "canner/10.5.1", extras = [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like 'athena' was mistakenly deleted?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You're right.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
ibis-server/pyproject.toml (1)

14-23: Remove or justify the athena extra
The summary noted removing "athena", yet it remains in the extras list. If Athena support isn’t needed in this upgrade, drop the entry; otherwise confirm its inclusion.

-   "athena",
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f86f2f8 and 60dfe83.

📒 Files selected for processing (1)
  • ibis-server/pyproject.toml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: ci

@douenergy douenergy merged commit 5edc19a into Canner:main Jun 9, 2025
4 checks passed
@douenergy
Copy link
Copy Markdown
Contributor

Thanks @goldmedal

@goldmedal goldmedal deleted the chore/self-host-ibis-10.5.1 branch June 10, 2025 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci dependencies Pull requests that update a dependency file ibis python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants