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

# · text · 9 lines · 7 code · 2 blank · 0 comment · 0 complexity · c0fd3ac06fd22efa1e8b78b07797ca80 MD5 · raw file

  1. DESCRIBE FUNCTION struct;
  2. DESCRIBE FUNCTION EXTENDED struct;
  3. EXPLAIN
  4. SELECT struct(1), struct(1, "a"), struct(1, "b", 1.5).col1, struct(1, struct("a", 1.5)).col2.col1
  5. FROM src LIMIT 1;
  6. SELECT struct(1), struct(1, "a"), struct(1, "b", 1.5).col1, struct(1, struct("a", 1.5)).col2.col1
  7. FROM src LIMIT 1;