hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Weeks (JIRA)" <>
Subject [jira] [Created] (HIVE-15692) Can't Create Table with Interval Column Type
Date Sun, 22 Jan 2017 20:07:26 GMT
Shawn Weeks created HIVE-15692:

             Summary: Can't Create Table with Interval Column Type
                 Key: HIVE-15692
             Project: Hive
          Issue Type: Bug
          Components: Parser
    Affects Versions: 1.2.1
         Environment: CentOS 6.8 Hortonworks HDP 2.5 Apache Hive (version 1.2.1000.
            Reporter: Shawn Weeks
            Priority: Minor

You can create a table with an interval type via create table as select but not directly with
create table.

This Works

{{create table test_interval 
select 	interval '1' day as day_interval, 
		interval '1' month as month_interval;}}

This raises an error.
{{create table test_interval(                                                         
   day_interval 	interval_day_time,                                                   
   month_interval 	interval_year_month

This message was sent by Atlassian JIRA

View raw message