PageRenderTime 27ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/ql/src/test/queries/clientpositive/udf_explode.q

#
text | 9 lines | 7 code | 2 blank | 0 comment | 0 complexity | 538e0e49fdf0d482f5dece176c178a46 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. DESCRIBE FUNCTION explode;
  2. DESCRIBE FUNCTION EXTENDED explode;
  3. EXPLAIN EXTENDED SELECT explode(array(1,2,3)) AS myCol FROM src LIMIT 3;
  4. EXPLAIN EXTENDED SELECT a.myCol, count(1) FROM (SELECT explode(array(1,2,3)) AS myCol FROM src LIMIT 3) a GROUP BY a.myCol;
  5. SELECT explode(array(1,2,3)) AS myCol FROM src LIMIT 3;
  6. SELECT explode(array(1,2,3)) AS (myCol) FROM src LIMIT 3;
  7. SELECT a.myCol, count(1) FROM (SELECT explode(array(1,2,3)) AS myCol FROM src LIMIT 3) a GROUP BY a.myCol;