Useful udf:
- Use Daiquery 'interactive spark' to debug the query first.
- HiveInsertOperatorWithSchema does not support CTE in
selectquery; need to put it inpreselect - empty map with types:
FB_CAST(NULL, 'MAP<INT, ARRAY<DOUBLE>>') - array:
FB_ARRAY_APPLY,FB_ARRAY_AGGREGATE,FB_ARRAY_GET,FB_ARRAY_SORT, FB_PREV- aggregate:
FB_COLLECT - sample:
DISTRIBUTE BY
ASC
LAMBDA(x TYPE) SOME_EXPR(x)
- different names for primitive types:
FLOAT,STRING - type composition: e.g.,
MAP<INT, FLOAT>,ARRAY<FLOAT> - type conversion:
FB_CAST(a, 'MAP<INT, ARRAY<BIGINT>>') - dynamic partition inserts:
INSERT OVERWRITE TABLE <OUTPUT_TBL>
PARTITION(ds = '<DATEID>', pipeline = '<PIPELINE>', version, type)
...
SELECT
...,
version,
type- Language manual: https://fburl.com/wiki/vr669g3h