Uploaded image for project: 'Apache HAWQ (Retired)'
  1. Apache HAWQ (Retired)
  2. HAWQ-1730

missing data when inserting into external table select from internal table using gpfdist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • backlog
    • Query Execution, Storage
    • None

    Description

      Step 1. create writable external table

      test =# CREATE WRITABLE EXTERNAL TABLE public.orders_test_history_ext (LIKE public.orders_test_history) LOCATION ('gpfdist://localhost:8020/orders_test_history_ext') 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 
      

      Step 2. insert into external table select from internal table

      test =# INSERT INTO orders_test_history_ext SELECT * FROM orders_test_history;
      INSERT 0 16653485
      Time: 141921.662 ms
      

      Step 3. check data in external table

      $ wc -l /data/hawq/orders_test_history_ext
      6737 /data/hawq/orders_test_history_ext
      

      Attachments

        Activity

          People

            huor Ruilong Huo
            huor Ruilong Huo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: