Skip to content

Commit f6bfb80

Browse files
committed
DMD-1567 Restore use_view on input-mapping-load as load_type=VIEW alias
PR #7570 replaced the boolean use_view field with the load_type enum on input-mapping-load and made use_view a rejected unexpected field (HTTP 400). Re-accept use_view additively for backward compatibility, alongside load_type. - InputMappingConfigTranslator::resolveRequestedLoadType(): single source of truth reconciling load_type (concrete wins) and the legacy use_view: true alias (-> VIEW); AUTO/omitted/falsy -> null (preflight resolves preferred). - InputMappingLoadRequest: re-add use_view (Booleanish + OpenAPI property), reject a contradictory use_view: true + load_type COPY/CLONE pair (HTTP 400), and route isViewRequested() through the resolver so the VIEW guards fire for the legacy trigger too. Processor unchanged. - Docs: apiary.apib (both occurrences), PROJECT_CONTEXT.md. - Unit + E2E coverage for the alias, conflict, VIEW-incompat and false cases.
1 parent 4d9a56c commit f6bfb80

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apiary.apib

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5561,6 +5561,8 @@ Each input item must reference its source via `source` — the full source table
55615561
+ COPY - Copy the data into the workspace.
55625562
+ CLONE - Clone the source table (when supported).
55635563
+ VIEW - Expose the source table as a view (when supported).
5564+
+ use_view (optional, boolean) - Legacy alias for `load_type: VIEW`, kept for backward compatibility. Cannot be combined with a conflicting `load_type` (`COPY`/`CLONE`).
5565+
Default: false
55645566
+ keep_internal_timestamp_column (optional, boolean) - When `false`, the `_timestamp` column is dropped after the load.
55655567
Default: true
55665568
+ file_type (optional, string) - Accepted for compatibility with the IM payload; no SAPI counterpart, value is ignored.
@@ -5741,6 +5743,8 @@ Same as [Input Mapping Load](#reference/workspaces/input-mapping-load) but scope
57415743
+ COPY - Copy the data into the workspace.
57425744
+ CLONE - Clone the source table (when supported).
57435745
+ VIEW - Expose the source table as a view (when supported).
5746+
+ use_view (optional, boolean) - Legacy alias for `load_type: VIEW`, kept for backward compatibility. Cannot be combined with a conflicting `load_type` (`COPY`/`CLONE`).
5747+
Default: false
57445748
+ keep_internal_timestamp_column (optional, boolean) - When `false`, the `_timestamp` column is dropped after the load.
57455749
Default: true
57465750
+ file_type (optional, string) - Accepted for compatibility with the IM payload; no SAPI counterpart, value is ignored.

0 commit comments

Comments
 (0)