title: Hive - Create partitioned table conditionally
body: <p>I'm trying to create a Hive table partitioned by rage of time (unix time).
  All I could find is how to make a partition for each value. But I want to partition by rage of values. I tried something like:</p>
  
  <pre><code>CREATE TABLE testing.test 
    (uuid bigint , userid varchar(100),username varchar(100))
  
    PARTITIONED BY (uuid bigint uuid&gt;1000 and uuid&lt;2000,uuid &gt;2000 and uuid &lt;3000)
  </code></pre>
  
  <p>But it's obviously didn't work. Any Ideas for the correct syntax?</p>