-
Notifications
You must be signed in to change notification settings - Fork 4
fix: Dataframe SQL block support #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughThe implementation adds explicit handling for the internal DuckDB dataframe integration when generating environment variables. When the integration ID matches the internal dataframe SQL integration, a special environment variable is created with a hardcoded DuckDB in-memory configuration. Other integrations continue using the existing config-to-JSON conversion approach. Internal DuckDB integration scanning is now enabled in cell traversal, and debug logging replaces info-level logging for environment variable assignments. Sequence DiagramsequenceDiagram
participant Caller
participant Provider as SqlIntegrationEnvironmentVariablesProvider
participant NotebookScanner
participant IntegrationConfig
Caller->>Provider: getEnvironmentVariables()
Provider->>NotebookScanner: scanCellsForIntegrationIds()
NotebookScanner-->>Provider: integrationIds (including DATAFRAME_SQL_INTEGRATION_ID)
loop For each integrationId
alt Internal DuckDB Integration
Provider->>Provider: Create env var with hardcoded<br/>deepnote+duckdb:///:memory: config
Provider->>Provider: debug log assignment
else Other Integration
Provider->>IntegrationConfig: fetchConfig(integrationId)
IntegrationConfig-->>Provider: config
Provider->>Provider: convertIntegrationConfigToJson()
Provider->>Provider: debug log assignment
end
end
Provider-->>Caller: environment variables object
Possibly related PRs
Suggested reviewers
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (5)**/!(*.node|*.web).ts📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.unit.test.ts📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
src/platform/**/*.ts📄 CodeRabbit inference engine (.github/instructions/platform.instructions.md)
Files:
**/*.{test,spec}.ts📄 CodeRabbit inference engine (.github/instructions/typescript.instructions.md)
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (3)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #118 +/- ##
=====================================
Coverage 72% 72%
=====================================
Files 536 536
Lines 40829 40837 +8
Branches 4990 4990
=====================================
+ Hits 29588 29596 +8
Misses 9578 9578
Partials 1663 1663
🚀 New features to boost your workflow:
|
Artmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Summary by CodeRabbit