Skip to content

Claude/improve flowframe api y c4 pz#447

Draft
Edwardvaneechoud wants to merge 2 commits intomainfrom
claude/improve-flowframe-api-yC4PZ
Draft

Claude/improve flowframe api y c4 pz#447
Edwardvaneechoud wants to merge 2 commits intomainfrom
claude/improve-flowframe-api-yC4PZ

Conversation

@Edwardvaneechoud
Copy link
Copy Markdown
Owner

No description provided.

claude added 2 commits May 4, 2026 17:53
…alog auto-registration

- Add "virtual" to write_mode Literal on write_catalog_table (frame +
  module-level + WriteMode TypeAlias) so the type hint matches what core
  already accepts.
- Expose output_field_config on cloud storage readers
  (scan_*_from_cloud_storage / scan_delta / read_from_cloud_storage) so
  Python-built flows can enforce the same schema validation the canvas does.
  Re-export OutputFieldConfig + OutputFieldInfo from flowfile_frame.
- Add register_flow_with_catalog() for Python-authored flows: persists the
  flow as YAML and creates a FlowRegistration row, mirroring how the canvas
  registers flows. Defaults to General > Python Editor under
  ~/.flowfile/flows/python_editor_flows/.
- Auto-register on write_mode='virtual' when the flow has no
  source_registration_id, so users don't have to manually save+register
  before producing virtual catalog tables.
- Seed General > Python Editor namespace and add
  python_editor_flows_directory storage path.

https://claude.ai/code/session_01M3GMQP8Tk7BeUx9LbMH7Tx
…_code

When the upstream polars_expr_transformer can express a flowfile formula as
native polars/flowframe code (e.g. now(), [a]+[b], "literal"), upgrade
with_columns(flowfile_formulas=...) to use a polars_code/formula node built
from the translated Expr instead of the legacy formula path. Falls back
transparently when the translator can't handle a formula (e.g. to_date with
a format string) and is skipped when the user supplies explicit
output_column_datatypes.

The upgrade is value-preserving: round-trippable formulas like [a]+[b]
still land as formula nodes (their _ff_repr round-trips losslessly), while
non-round-trippable ones like now() now produce polars_code nodes.

Also add a unit test confirming output_field_config is exposed on every
cloud storage reader helper, so Python flows can opt into the schema
validation that runs at the core layer.

- Bump polars-expr-transformer to >=0.5.4 (ships to_flowframe_code).
- Add _try_translate_flowfile_formulas() helper in flow_frame.py.

https://claude.ai/code/session_01M3GMQP8Tk7BeUx9LbMH7Tx
@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for flowfile-wasm canceled.

Name Link
🔨 Latest commit 392a1b4
🔍 Latest deploy log https://app.netlify.com/projects/flowfile-wasm/deploys/69f9d828f27ec5000841c99f

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.

2 participants