From 67cc2a8555ab2b6999cc24fe203c0bfa1277a319 Mon Sep 17 00:00:00 2001 From: Lukas Wuttke Date: Mon, 31 Aug 2026 14:03:50 +0200 Subject: [PATCH] fix(ingest): report the physical destination table, not the requested name (backend#2895) --- internal/cli/coverage_test.go | 73 +++++++++++++++++++ internal/cli/data_ingest_output.go | 15 +++- .../cli/testdata/golden/zz-all-strings.golden | 1 + internal/submit/summary.go | 32 ++++++++ internal/submit/summary_test.go | 67 +++++++++++++++++ 5 files changed, 187 insertions(+), 1 deletion(-) diff --git a/internal/cli/coverage_test.go b/internal/cli/coverage_test.go index ac6dd7db..db670a74 100644 --- a/internal/cli/coverage_test.go +++ b/internal/cli/coverage_test.go @@ -367,3 +367,76 @@ func TestRunClusterInfo_BadKubeconfigExitsThree(t *testing.T) { t.Errorf("exit code = %d, want 3 (kubeconfig/local-input error)", ee.Code()) } } + +// --------------------------------------------------------------------------- +// backend#2895 — --output-json must name the table that was CREATED. +// +// `spec["table"]` is the operator's --name. Under per-ingestion tables the +// physical table is a `ds_` handle, so echoing the label emitted +// `"table": "