Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit 4eec63c

Browse files
committed
Exctracting ingest statements preparation
1 parent fadd35b commit 4eec63c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

platform/ingest/processor.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,12 @@ func (ip *IngestProcessor) processInsertQuery(ctx context.Context,
669669
transformedJsons = append(transformedJsons, transformedJson)
670670
}
671671

672+
return ip.generateIngestStatements(ctx, tableName, transformedJsons, tableFormatter, tableDefinitionChangeOnly, encodings)
673+
}
674+
675+
func (ip *IngestProcessor) generateIngestStatements(ctx context.Context, tableName string,
676+
transformedJsons []types.JSON, tableFormatter TableColumNameFormatter, tableDefinitionChangeOnly bool,
677+
encodings map[schema.FieldEncodingKey]schema.EncodedFieldName) ([]string, error) {
672678
table := ip.FindTable(tableName)
673679
var tableConfig *chLib.ChTableConfig
674680
var createTableCmd string

0 commit comments

Comments
 (0)