common/schema: rename generate to materialized

See #588
This commit is contained in:
Vincent Bernat
2023-03-30 22:47:12 +02:00
parent 91834abb0f
commit 23b453f573
5 changed files with 11 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ type Component struct {
// New creates a new schema component.
func New(config Configuration) (*Component, error) {
schema := flows()
for _, k := range config.Generate {
for _, k := range config.Materialize {
if column, ok := schema.LookupColumnByKey(k); ok {
if column.ClickHouseAlias != "" {
column.ClickHouseGenerateFrom = column.ClickHouseAlias