Skip to content

Instantly share code, notes, and snippets.

@rollin96
Last active February 18, 2019 06:44
Show Gist options
  • Save rollin96/57fbc46c7e00e0f2f54392dc86178909 to your computer and use it in GitHub Desktop.
Save rollin96/57fbc46c7e00e0f2f54392dc86178909 to your computer and use it in GitHub Desktop.
hive sql regexp hivevar hiveconf
-- 특수문자만 있는 케이스 제거
query not rlike '\'\"`^[0-9!@#$%^&*()=+_.,?/-]*$'
-- 구두점이나 숫자, 자모 만으로 구성된 케이스 제거
query not rlike '[\p{Digit}\p{Punct}\p{Space}\u3131-\u318E]+'
-- hivevar vs hiveconf : prefer hivevar
hive --hivevar a='this is a' -e '!echo ${a};'
@rollin96
Copy link
Author

rollin96 commented Feb 18, 2019

  • hivevar vs hiveconf link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment