I have a Hive Query like
SELECT Year, Month, Day, Hours, Minutes,
cast((cast(Seconds as int)/15) as int)*15
AS secondMod, Count(*) AS PerCount FROM LoggerTable
GROUP BY Year, Month, Day, Hours, Minutes, secondMod
ORDER BY PerCount;
the above query fails with an error
FAILED: Error in semantic analysis: line 1:175 Invalid Table Alias or Column Reference secondMod
'LoggerTable' is a Hive Table with all columns of string type.
Any workaround for this issue?