suggestion for empty input
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -152,7 +152,11 @@ func configureColumns(input Parquet, skipLineFormating bool) []ColumnOperation {
|
|||||||
|
|
||||||
case "k", "keep", "":
|
case "k", "keep", "":
|
||||||
op.OriginalName = "\"" + op.OriginalName + "\""
|
op.OriginalName = "\"" + op.OriginalName + "\""
|
||||||
op.NewName = formatColumnName(op.NewName)
|
if input == "" && suggestion != "" {
|
||||||
|
op.NewName = formatColumnName(suggestion)
|
||||||
|
} else {
|
||||||
|
op.NewName = formatColumnName(op.NewName)
|
||||||
|
}
|
||||||
op.Action = "rename"
|
op.Action = "rename"
|
||||||
operations = append(operations, op)
|
operations = append(operations, op)
|
||||||
goto nextColumn
|
goto nextColumn
|
||||||
|
|||||||
Reference in New Issue
Block a user