Skip to content

Support passing BodoDataFrames to BodoSQL C++ backend without extra plan executions#919

Merged
ehsantn merged 5 commits intomainfrom
ehsan/bdf_to_sql_plan
Nov 10, 2025
Merged

Support passing BodoDataFrames to BodoSQL C++ backend without extra plan executions#919
ehsantn merged 5 commits intomainfrom
ehsan/bdf_to_sql_plan

Conversation

@ehsantn
Copy link
Collaborator

@ehsantn ehsantn commented Nov 10, 2025

Changes included in this PR

As title.

Testing strategy

Added unit test.

User facing changes

None.

Checklist

  • Pipelines passed before requesting review. To run CI you must include [run CI] in your commit message.
  • I am familiar with the Contributing Guide
  • I have installed + ran pre-commit hooks.

@ehsantn ehsantn marked this pull request as ready for review November 10, 2025 16:14
@codecov
Copy link

codecov bot commented Nov 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.79%. Comparing base (c33fbb5) to head (1c99516).
⚠️ Report is 112 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #919      +/-   ##
==========================================
+ Coverage   66.68%   68.79%   +2.10%     
==========================================
  Files         186      195       +9     
  Lines       66795    67547     +752     
  Branches     9507     9593      +86     
==========================================
+ Hits        44543    46467    +1924     
+ Misses      19572    18253    -1319     
- Partials     2680     2827     +147     

Copy link
Contributor

@scott-routledge2 scott-routledge2 left a comment

Choose a reason for hiding this comment

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

Thanks @ehsantn

Copy link
Collaborator

@DrTodd13 DrTodd13 left a comment

Choose a reason for hiding this comment

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

Thanks.

f.type, f.name, _is_nullable_dtype(df_type.dtypes.iloc[i])
)
for i, f in enumerate(pa.Schema.from_pandas(df_type))
for i, f in enumerate(pa.Schema.from_pandas(df_type.reset_index(drop=True)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Was there a reason the reset_index had to move after line 1136? Seems like reset_index could have been added to end of 1133.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just wanted to avoid this for BodoDataFrames just in case.

@ehsantn ehsantn merged commit 48da16c into main Nov 10, 2025
29 checks passed
@ehsantn ehsantn deleted the ehsan/bdf_to_sql_plan branch November 10, 2025 18:03
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