From 893a05307ed25add169233d6158a6b8c3cc0ac30 Mon Sep 17 00:00:00 2001 From: Mayur Jagtap Date: Wed, 4 Dec 2024 12:05:22 +0530 Subject: [PATCH] fix: Fixed bug of sending partition fields as interface --- plugins/extractors/maxcompute/maxcompute.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/extractors/maxcompute/maxcompute.go b/plugins/extractors/maxcompute/maxcompute.go index 8a8b9ed9..bd40bfbc 100644 --- a/plugins/extractors/maxcompute/maxcompute.go +++ b/plugins/extractors/maxcompute/maxcompute.go @@ -305,8 +305,9 @@ func (e *Extractor) buildTableAttributesData(schemaName string, tableInfo *table attributesData["sql"] = tableInfo.ViewText } - partitionNames := make([]string, len(tableInfo.PartitionColumns)) + var partitionNames []interface{} if tableInfo.PartitionColumns != nil && len(tableInfo.PartitionColumns) > 0 { + partitionNames = make([]interface{}, len(tableInfo.PartitionColumns)) for i, column := range tableInfo.PartitionColumns { partitionNames[i] = column.Name }