File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
projects/pgai/pgai/semantic_catalog/templates/templates Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ Expected context variables:
15
15
- objid: PostgreSQL object ID
16
16
- schema_name: Schema name
17
17
- view_name: View name
18
- - table_name: Table name (for comments)
19
18
- is_materialized: Boolean indicating if it's a materialized view
20
19
- is_continuous_aggregate: Boolean indicating if it's a TimescaleDB continuous aggregate
21
20
- definition: The SQL definition of the view
@@ -35,11 +34,11 @@ CREATE{% if view.is_materialized %} MATERIALIZED {% else %} {% endif %}VIEW {{ v
35
34
{% endfor -%}
36
35
*/
37
36
{% if view .description is not none %}
38
- COMMENT ON TABLE {{ view.schema_name }}.{{ view.table_name }} IS $${{ view.description.description }}$$;
37
+ COMMENT ON VIEW {{ view.schema_name }}.{{ view.view_name }} IS $${{ view.description.description }}$$;
39
38
{% endif -%}
40
39
{% for column in (view .columns if view .columns is not none else []) -%}
41
40
{% if column .description is not none -%}
42
- COMMENT ON COLUMN {{ view.schema_name }}.{{ view.table_name }}.{{ column.name }} IS $${{ column.description.description }}$$;
41
+ COMMENT ON COLUMN {{ view.schema_name }}.{{ view.view_name }}.{{ column.name }} IS $${{ column.description.description }}$$;
43
42
{% endif -%}
44
43
{% endfor -%}
45
44
{% if view .sample is not none %}
You can’t perform that action at this time.
0 commit comments