Skip to content

Cleanup/remove performance mode divergence#446

Draft
Edwardvaneechoud wants to merge 5 commits intomainfrom
cleanup/remove-performance-mode-divergence
Draft

Cleanup/remove performance mode divergence#446
Edwardvaneechoud wants to merge 5 commits intomainfrom
cleanup/remove-performance-mode-divergence

Conversation

@Edwardvaneechoud
Copy link
Copy Markdown
Owner

This pull request removes all support for the "optimized virtual-table plan" storage and preview path, simplifying the handling of virtual tables in the catalog. The migration drops related database columns, removes associated code paths, and ensures that virtual tables no longer attempt to provide data previews (the UI will show a placeholder instead). Only the "is_optimized" flag is retained as a derived indicator for laziness propagation.

Database and schema changes:

  • Drops the serialized_lazy_frame, polars_plan, and source_table_versions columns from the catalog_tables table, removing storage for optimized virtual-table plans. (flowfile_core/alembic/versions/010_drop_optimized_plan_columns.py)

Removal of optimized virtual-table plan logic:

  • Removes all code related to storing, updating, and previewing optimized virtual-table plans, including parameters and attributes for serialized_lazy_frame, polars_plan, and source_table_versions from service and model layers. (flowfile_core/catalog/service.py, flowfile_core/catalog/services/virtual_tables.py, flowfile_core/catalog/services/tables.py) [1] [2] [3] [4] [5] [6] [7] [8] [9]

  • Removes the check_source_versions_current function and all logic related to checking or hashing source table versions. (flowfile_core/catalog/delta_utils.py, flowfile_core/catalog/text_utils.py, flowfile_core/catalog/services/sql.py) [1] [2] [3]

Virtual table preview simplification:

  • Removes all preview logic for virtual tables: the backend now returns an empty preview for virtual tables, and the UI is expected to display a "no data preview available" placeholder. (flowfile_core/catalog/services/previews.py, flowfile_core/catalog/service.py) [1] [2] [3] [4] [5] [6]

Code cleanup:

  • Removes unused imports and cleans up references to deleted functionality. (flowfile_core/catalog/services/virtual_tables.py, flowfile_core/catalog/service.py) [1] [2] [3]

These changes remove legacy code and storage related to optimized virtual-table plans, streamlining the virtual table implementation and reducing maintenance overhead.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 4, 2026

Deploy Preview for flowfile-wasm canceled.

Name Link
🔨 Latest commit 5bdae41
🔍 Latest deploy log https://app.netlify.com/projects/flowfile-wasm/deploys/69f8d7b876ba6400077aca50

@netlify
Copy link
Copy Markdown

netlify Bot commented May 4, 2026

Deploy Preview for flowfile-wasm canceled.

Name Link
🔨 Latest commit 29c7339
🔍 Latest deploy log https://app.netlify.com/projects/flowfile-wasm/deploys/69f8c2237df7600008899381

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.

1 participant