From 0e6c388b7ffac4af710bf7499b03cf4efa26bff8 Mon Sep 17 00:00:00 2001 From: Abhishek Radhakrishnan Date: Thu, 17 Oct 2024 08:33:10 -0700 Subject: [PATCH] Delta snapshots are zero-indexed, so remove zeroMeansUndefined: true. (#17367) This lets users filter by snapshotVersion: 0. Previously, zeroMeanUndefined was set to true, so it would silently default to the latest snapshot. --- web-console/src/druid-models/ingestion-spec/ingestion-spec.tsx | 1 - web-console/src/druid-models/input-source/input-source.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/web-console/src/druid-models/ingestion-spec/ingestion-spec.tsx b/web-console/src/druid-models/ingestion-spec/ingestion-spec.tsx index 09ad1d73921..109972e6ba0 100644 --- a/web-console/src/druid-models/ingestion-spec/ingestion-spec.tsx +++ b/web-console/src/druid-models/ingestion-spec/ingestion-spec.tsx @@ -1115,7 +1115,6 @@ export function getIoConfigFormFields(ingestionComboType: IngestionComboType): F label: 'Delta snapshot version', type: 'number', placeholder: '(latest)', - zeroMeansUndefined: true, info: ( <> The snapshot version to read from the Delta table. By default, the latest snapshot is diff --git a/web-console/src/druid-models/input-source/input-source.tsx b/web-console/src/druid-models/input-source/input-source.tsx index 6ad3b8e0a1a..dc793ce6456 100644 --- a/web-console/src/druid-models/input-source/input-source.tsx +++ b/web-console/src/druid-models/input-source/input-source.tsx @@ -667,7 +667,6 @@ export const INPUT_SOURCE_FIELDS: Field[] = [ label: 'Delta snapshot version', type: 'number', placeholder: '(latest)', - zeroMeansUndefined: true, defined: typeIsKnown(KNOWN_TYPES, 'delta'), info: ( <>