You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "fann (Jira)" <ji...@apache.org> on 2020/05/19 09:56:00 UTC

[jira] [Created] (CARBONDATA-3828) hive search carbondata Partition table not support

fann created CARBONDATA-3828:
--------------------------------

             Summary: hive search carbondata Partition table not  support
                 Key: CARBONDATA-3828
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-3828
             Project: CarbonData
          Issue Type: Bug
          Components: hive-integration
    Affects Versions: 1.6.1
         Environment: centos,hive1.2.2
            Reporter: fann
         Attachments: 屏幕快照 2020-05-19 下午5.25.39.png

carbon create table below;
 
carbon.sql(
           s"""[链接标题|http://example.com]
              | CREATE TABLE partition_table1(
              |   id INT,
              |   name STRING,
              |   city STRING,
              |   age INT
              | )PARTITIONED BY (`date` STRING)
              | STORED AS carbondata TBLPROPERTIES ('flat_folder'='true')
           """.stripMargin)
 
问题原因是carbon分区表的元数据是在/carbon/store/default/partition_table1/Metadata/[schema|hdfs://hdfs-nameservice1/user/jice/carbon/store/default/partition_table1/date=2020-05-04/Metadata/schema]目录下
但是hive查询的时候读取的是[/carbon/store/default/partition_table1/date=2020-05-04/Metadata/schema|hdfs://hdfs-nameservice1/user/jice/carbon/store/default/partition_table1/date=2020-05-04/Metadata/schema],导致以上报错。



--
This message was sent by Atlassian Jira
(v8.3.4#803005)