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

# · text · 19 lines · 16 code · 3 blank · 0 comment · 0 complexity · 0b65d6d5d87685c865343cc15d34efc7 MD5 · raw file

  1. DESCRIBE FUNCTION unhex;
  2. DESCRIBE FUNCTION EXTENDED unhex;
  3. -- Good inputs
  4. SELECT
  5. unhex('4D7953514C'),
  6. unhex('31323637'),
  7. unhex('61'),
  8. unhex('2D34'),
  9. unhex('')
  10. FROM src limit 1;
  11. -- Bad inputs
  12. SELECT
  13. unhex('MySQL'),
  14. unhex('G123'),
  15. unhex('\0')
  16. FROM src limit 1;