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): show correct synced table name (#69454)

Luca Zani68d6281c1637
diff --git a/products/data_warehouse/frontend/scenes/SchemaScene/ConfigurationTab.tsx b/products/data_warehouse/frontend/scenes/SchemaScene/ConfigurationTab.tsx
index 2adc4fc8751b..e73ac97cf12e 100644
--- a/products/data_warehouse/frontend/scenes/SchemaScene/ConfigurationTab.tsx
+++ b/products/data_warehouse/frontend/scenes/SchemaScene/ConfigurationTab.tsx
@@ -188,6 +188,8 @@ function DetailsSection({
onConfigureSyncMethod: () => void
onViewSyncHistory: () => void
}): JSX.Element {
+ const syncedTableName = schema.table?.hogql_name ?? schema.table?.name
+
return (
<div>
<SectionHeader
@@ -280,20 +282,21 @@ function DetailsSection({
</div>
<div className="flex items-center justify-between">
<span className="text-muted">Synced table</span>
- {schema.table ? (
+ {schema.table && syncedTableName ? (
<Link
to={urls.sqlEditor({
- query: defaultQuery(schema.table.name, schema.table.columns).source.query,
+ query: defaultQuery(syncedTableName, schema.table.columns).source.query,
})}
onClick={(event) => {
event.preventDefault()
- const table = schema.table!
newInternalTab(
- urls.sqlEditor({ query: defaultQuery(table.name, table.columns).source.query })
+ urls.sqlEditor({
+ query: defaultQuery(syncedTableName, schema.table!.columns).source.query,
+ })
)
}}
>
- <code>{schema.table.name}</code>
+ <code>{syncedTableName}</code>
</Link>
) : (
<span className="text-muted">Not yet synced</span>