Я получаю эту ошибку по приведенному ниже коду:
Error in SQL statement: ParseException: mismatched input 'from' expecting <EOF>(line 2, pos 0)
%sql
select a.data_source, a.customer_type, count(distinct a.customer_id) as cnt from df3 as a
where a.customer_id = any(select distinct b.customer_id
from df3 as b
where a.data_source != b.data_source)
group by 1, 2;