You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The query language is not properly calling python functions when columns are grouped. The example below illustrates the problem. Array values seem to be expanded and passed in as separate arguments, instead of being passed in as a single array argument.
fromdeephavenimporttime_tablet1=time_table("00:00:01").update(["TimeBin = upperBin(Timestamp, '00:00:03')", "Person = random() > 0.5 ? `A` : random() > 0.5 ? `B` : `C`"])
t2=t1 \
.drop_columns("Timestamp") \
.select_distinct(["TimeBin", "Person"]) \
.sort(["TimeBin", "Person"]) \
.group_by("TimeBin")
# single positional argumentdefmake_pairs_1(a):
return1# take any inputs as an arraydefmake_pairs_2(*a):
return2# worksx11=t1.update("Pair=(int)make_pairs_1(Person)")
# worksx12=t1.update("Pair=(int)make_pairs_2(Person)")
# failsx21=t2.update("Pair=(int)make_pairs_1(Person)")
# worksx22=t2.update("Pair=(int)make_pairs_2(Person)")
The text was updated successfully, but these errors were encountered:
The query language is not properly calling python functions when columns are grouped. The example below illustrates the problem. Array values seem to be expanded and passed in as separate arguments, instead of being passed in as a single array argument.
The text was updated successfully, but these errors were encountered: