Skip to content

Commit

Permalink
fix: Fixed bug of sending partition fields as interface
Browse files Browse the repository at this point in the history
  • Loading branch information
solsticemj25 committed Dec 4, 2024
1 parent 24f52f1 commit 893a053
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/extractors/maxcompute/maxcompute.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 893a053

Please sign in to comment.