emtpy syntax tree case

This commit is contained in:
Jesse Bannon 2026-01-22 15:56:16 -08:00
parent ed408a352f
commit 53b112ff3e
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,4 @@
# pylint: disable=missing-raises-doc
import copy
from typing import Dict
from typing import List
from typing import Optional

View file

@ -55,6 +55,10 @@ class SyntaxTree(VariableDependency):
custom_functions=custom_functions,
)
# If no arguments, must be empty string
if len(maybe_resolvable_values) == 0:
return String(value="")
# Mimic the above resolve behavior
if len(maybe_resolvable_values) > 1:
return BuiltInFunction(name="concat", args=maybe_resolvable_values)