Hive UDF to DB UDF conversion and partition rewrite

What is the query 'col1 from tab1' for?