Skip to content

feat(cli): add --use-json-native-format to Postgres and MySQL ClickPipe create (#1490) - #1492

Open
sdairs wants to merge 1 commit into
claude/drift-clickpipes-json-native-apifrom
claude/drift-clickpipes-json-native-cli
Open

sdairs wants to merge 1 commit into
claude/drift-clickpipes-json-native-apifrom
claude/drift-clickpipes-json-native-cli

Conversation

@sdairs

@sdairs sdairs commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Fixes #1490. Stacked on the useJsonNativeFormat API PR.

  • cloud clickpipe create postgres and create mysql take --use-json-native-format <true|false>, following --use-compression/--delete-on-merge. It is omitted unless given, because the setting must be enabled for the organization.
  • Create only: the spec says it cannot be changed later, so update has no such flag.
  • Tests: clap parsing (maximal and minimal) and builder tests for both sources, covering omission when unset.
  • docs/reference/clickpipe-configuration.md lists it with the other create-time choices.

🤖 Generated with Claude Code


Note

Low Risk
CLI-only create-time flag wiring and tests; no update path or auth/data-path changes.

Overview
Adds --use-json-native-format true|false to clickpipe create postgres and clickpipe create mysql, matching other create-time CDC booleans. The flag is optional: when omitted, useJsonNativeFormat is not sent on the create request so orgs without the feature are unchanged; when set, it is passed through to pipe settings.

Docs document the option as create-only for Postgres/MySQL (ClickHouse 25.3+, org feature), native JSON vs String, and wrapping/array behavior. Tests cover CLI parsing (maximal/minimal) and request builders for both sources.

Reviewed by Cursor Bugbot for commit c8a955f. Bugbot is set up for automated code reviews on this repo. Configure here.

…pe create

Sends `useJsonNativeFormat` only when the flag is given, like the other
create-time CDC booleans, since the setting must be enabled for the
organization.

Fixes #1490

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

cloud clickpipe create postgres|mysql: --use-json-native-format

1 participant