We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37b260b commit d5e2539Copy full SHA for d5e2539
mc2mc/internal/client/odps.go
@@ -180,13 +180,17 @@ func (c *odpsClient) terminate(instance *odps.Instance) error {
180
181
func addHints(additionalHints map[string]string, query string) map[string]string {
182
hints := make(map[string]string)
183
- for k, v := range additionalHints {
184
- hints[k] = v
185
- }
186
multisql := strings.Contains(query, ";")
187
if multisql {
188
hints["odps.sql.submit.mode"] = "script"
189
}
+ for k, v := range additionalHints {
+ if _, ok := hints[k]; ok && v == "" {
+ delete(hints, k) // remove empty hints
190
+ continue
191
+ }
192
+ hints[k] = v
193
194
195
return hints
196
0 commit comments