I am thinking about make a query as a function in Hive. For example
SELECT * FROM TABLE WHERE COLUMN=VALUE
I want to make VALUE as an argument of the function. Each time I pass a particular value into it, it can output the query result. I found an example here How to return result of a SELECT inside a function in PostgreSQL? ,which is exactly same as what I want to do. But this example is not in Hive.
Any help is greatly appreciated!