Skip to content

Extend http upsert keys and cursor for /upload - #25

Merged
fvaleye merged 10 commits into
mainfrom
fl/extend-http-upsert-keys-and-cursor
Aug 19, 2026
Merged

Extend http upsert keys and cursor for /upload#25
fvaleye merged 10 commits into
mainfrom
fl/extend-http-upsert-keys-and-cursor

Conversation

@fvaleye

@fvaleye fvaleye commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Extend the mock's upsert and upload contracts
Brings altertable-mock in line with the HTTP lakehouse contract: comma-separated primary_key and cursor_field on /upsert,mode=create_append on /upload.

The new contract:

  • composite primary_key plus optional cursor_field on /upsert, both accepted as a single column or a comma-separated list, parsed with the backend's rule: split on commas, trim, drop empty elements, and return 400 naming the parameter when nothing is left
  • mode=create_append on /upload, creating the table if missing, else appending
  • uploads insert by column name, so a file narrower than an evolved table still lands and the missing columns fill with NULL
  • upsert creates its missing target table like the real API

@fvaleye
fvaleye force-pushed the fl/extend-http-upsert-keys-and-cursor branch from 83b9ebb to 5d62285 Compare August 18, 2026 13:54
@fvaleye
fvaleye force-pushed the fl/extend-http-upsert-keys-and-cursor branch from 5d62285 to 12b51a4 Compare August 18, 2026 13:58
@fvaleye
fvaleye merged commit 62cc793 into main Aug 19, 2026
4 checks passed
@fvaleye
fvaleye deleted the fl/extend-http-upsert-keys-and-cursor branch August 19, 2026 13:30
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