Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(data-warehouse): restore sync method column for non-SQL sources (#60908)

Tom Owers6d25990c046e
diff --git a/products/data_warehouse/frontend/shared/components/forms/SchemaForm.tsx b/products/data_warehouse/frontend/shared/components/forms/SchemaForm.tsx
index 0c73e0784797..eede8766aa85 100644
--- a/products/data_warehouse/frontend/shared/components/forms/SchemaForm.tsx
+++ b/products/data_warehouse/frontend/shared/components/forms/SchemaForm.tsx
@@ -85,7 +85,8 @@ export default function SchemaForm(): JSX.Element {
toggleSchemaShouldSync(schema, checked)
}
- const shouldShowSyncColumns = !isDirectQueryMode && !!selectedConnector?.supportsColumnSelection
+ const shouldShowSyncColumns = !isDirectQueryMode
+ const shouldShowColumnSelection = !isDirectQueryMode && !!selectedConnector?.supportsColumnSelection
// scroll to top of container
useEffect(() => {
@@ -317,7 +318,7 @@ export default function SchemaForm(): JSX.Element {
key: 'columns',
title: 'Columns',
align: 'right' as const,
- isHidden: !shouldShowSyncColumns,
+ isHidden: !shouldShowColumnSelection,
tooltip:
'Pick a subset of columns to sync. Primary keys and the active incremental field are always retained.',
render: function RenderColumns(_: unknown, schema: ExternalDataSourceSyncSchema) {