Skip to content
Advertisement

How to replace rows in Hive database using HQL

I’m trying to filter out a hive database df

I want to replace rows in this data in such a way that the resultant dataset is something like :

The query i was trying to use was :

This is not working as i filter out the all rows of project p1. I kinda think I’m missing something very trivial here.

Advertisement

Answer

I think the logic you want is:

Or equivalently:

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