Affected Version
0.16.0 and 0.17.0
Description
The following query throws an exception. However if the LOOKUP is performed on a column reference, then it works even though the column would also just evaluate to a string value for each row.
SELECT
LOOKUP('some', 'adtype_by_adtypeid') AS tst