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 }