[Bug]: `CONTACT` keyword is not support
qidi1 opened this issue · comments
tomato commented
Describe the bug
When parsing the following SQL using parser:
SELECT IF(husband_user_id>wife_user_id,CONCAT(husband_user_id,'-',wife_user_id),CONCAT(wife_user_id,'-',husband_user_id)) AS uniq_id
,'1' AS couple_flag
FROM dws_rel_sns_couple_dd
WHERE dt = MAX_PT('dws_rel_sns_couple_dd')
AND p_level in ('S','AAA','AA')
GROUP BY IF(husband_user_id>wife_user_id,CONCAT(husband_user_id,'-',wife_user_id),CONCAT(wife_user_id,'-',husband_user_id))
An error occurred
State : 594
Stack : SELECT qualified_name LPAREN call_list COMMA . LexToken(CONCAT,'concat',1,40)
ERROR: Error : SELECT qualified_name LPAREN call_list COMMA . LexToken(CONCAT,'concat',1,40
It caused by CONTACT
keyword is not support.