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): correct table name example in source prefix field (#64553)

Tom Owers92257a93f044
diff --git a/products/data_warehouse/frontend/shared/components/forms/SourceForm.tsx b/products/data_warehouse/frontend/shared/components/forms/SourceForm.tsx
index 4728a680a93c..e756690065ec 100644
--- a/products/data_warehouse/frontend/shared/components/forms/SourceForm.tsx
+++ b/products/data_warehouse/frontend/shared/components/forms/SourceForm.tsx
@@ -845,9 +845,10 @@ export function SourceFormComponent({
: 'Prefix cannot consist of only underscores'
}
- const cleanedPrefix = value ? value.trim() : ''
const sourceType = sourceConfig.name.toLowerCase()
- const tableName = `${cleanedPrefix}${sourceType}_table_name`.toLowerCase()
+ const tableName = (
+ cleaned ? `${sourceType}.${cleaned}.table_name` : `${sourceType}.table_name`
+ ).toLowerCase()
return (
<>
<LemonInput