Bläddra i källkod

HUE-8775: [editor] Boolean variable substitution fails with coercion error

Mykhailo Kysliuk 6 år sedan
förälder
incheckning
cb51e9b
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      desktop/libs/notebook/src/notebook/connectors/base.py

+ 1 - 1
desktop/libs/notebook/src/notebook/connectors/base.py

@@ -118,7 +118,7 @@ class Notebook(object):
         p1 = match.group(1)
         p2 = match.group(2)
         variable = variables[p2]
-        value = variable['value']
+        value = str(variable['value'])
         return p1 + (value if value is not None else variable['meta'].get('placeholder',''))
 
       return re.sub("([^\\\\])\\$" + ("{(" if hasCurlyBracketParameters else "(") + variablesString + ")(=[^}]*)?" + ("}" if hasCurlyBracketParameters else ""), replace, statement_raw)