Skip to content
Advertisement

Hive: group by calculated column

I need to execute query like

In Hive this query fails: it cannot find field myUnusualField among other fields of the table.

Does this mean that in order to group by any calculated column in Hive I have to use subqueries?

?

Advertisement

Answer

Try repeating the expression:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement