Hive UDF to compartible DB UDF conversion and unit test

- Method for hive udf to db udf rewrite
- Unit test for query rewrite with udf conversion
- Test schema with fact and dimension table creation