mirror of
https://github.com/apache/superset.git
synced 2026-06-02 14:19:21 +00:00
This problem especially happens with pinot when you select two metrics with different aliases but same function. For example, effectively the sql like 'select type, count(*) as one, count(*) as two from bar group by type'. In such a case, pinot will return two columns, both named count_star. So when we try to do a df['count_star'], the result is a Dataframe and not a Series. This causes a KeyError in the get_df method. So we push the DB specific label mutation inside get_df before we do any other mutation.