[ 
https://issues.apache.org/jira/browse/HAWQ-1730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruilong Huo reassigned HAWQ-1730:
---------------------------------

    Assignee: Ruilong Huo  (was: Lei Chang)

> missing data when inserting into external table select from internal table
> --------------------------------------------------------------------------
>
>                 Key: HAWQ-1730
>                 URL: https://issues.apache.org/jira/browse/HAWQ-1730
>             Project: Apache HAWQ
>          Issue Type: Bug
>          Components: Query Execution, Storage
>            Reporter: Ruilong Huo
>            Assignee: Ruilong Huo
>            Priority: Major
>
> Step 1. create writable external table
> {code}
> test =# CREATE WRITABLE EXTERNAL TABLE public.orders_test_history_ext (LIKE 
> public.orders_test_his) LOCATION ('gpfdist://localhost:8020/orders_test_his') 
> FORMAT
> 'TEXT'  (DELIMITER '^|^' NULL '');
> NOTICE: Table doesn't have 'distributed by' clause, defaulting to 
> distribution columns from LIKE table
> CREATE EXTERNAL TABLE
> Time: 803.315 ms 
> {code}
> Step 2. insert into external table select from internal table
> {code}
> test =# INSERT INTO orders_test_his_ext SELECT * FROM orders_test_his;
> INSERT 0 16653485
> Time: 141921.662 ms
> {code}
> Step 3. check data in external table
> {code}
> $ wc -l /data/hawq/orders_tests_his
> 6737 /data/hawq/orders_test_his
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to