Skip to content

Instantly share code, notes, and snippets.

@ksomemo
Created October 28, 2014 12:05
Show Gist options
  • Save ksomemo/2d8cf2761465c92dd236 to your computer and use it in GitHub Desktop.
Save ksomemo/2d8cf2761465c92dd236 to your computer and use it in GitHub Desktop.
add jar user-define-table-generating-functions.jar;
CREATE TEMPORARY FUNCTION nrow_multi_column AS 'nrow.multi.column.LateralViewSample';
SELECT
ori_col1, ori_col2
, res_alias.*
FROM src_table
LATERAL VIEW nrow_multi_column(arg1, arg2) res_alias as res_col1, res_col2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment