Skip to content
Advertisement

Convert Postgresql into HiveSql

How do I convert below mentioned postgresql query into HiveSql

Advertisement

Answer

Use CASE expressions like this:

Also in Hive version >= 1.3 you can use quarter function:

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