/tags/release-0.0.0-rc0/hive/external/ql/src/test/queries/clientpositive/udf_concat_ws.q
text | 18 lines | 13 code | 5 blank | 0 comment | 0 complexity | 4b64782d61da2f4464e3e41811bb70bf MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
- DESCRIBE FUNCTION concat_ws;
- DESCRIBE FUNCTION EXTENDED concat_ws;
- CREATE TABLE dest1(c1 STRING, c2 STRING, c3 STRING);
- FROM src INSERT OVERWRITE TABLE dest1 SELECT 'abc', 'xyz', '8675309' WHERE src.key = 86;
- EXPLAIN
- SELECT concat_ws(dest1.c1, dest1.c2, dest1.c3),
- concat_ws(',', dest1.c1, dest1.c2, dest1.c3),
- concat_ws(NULL, dest1.c1, dest1.c2, dest1.c3),
- concat_ws('**', dest1.c1, NULL, dest1.c3) FROM dest1;
- SELECT concat_ws(dest1.c1, dest1.c2, dest1.c3),
- concat_ws(',', dest1.c1, dest1.c2, dest1.c3),
- concat_ws(NULL, dest1.c1, dest1.c2, dest1.c3),
- concat_ws('**', dest1.c1, NULL, dest1.c3) FROM dest1;