Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-3312

Can not export column data named `value` from hive to mysql

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.4.6
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      the hive table 

      CREATE TABLE if not exists `test_table`(
      `id` bigint, 
      `value` double)
      STORED AS parquet
      

      the mysql table

      CREATE TABLE if not exists `test_table`(
      `id` bigint, 
      `value` double);
      

      the export command

       

      sqoop export --connect "${jdbc_connect_url}" --username test --password *** --table test_table --columns id,value --hcatalog-database default --hcatalog-table test_table
      

      The `value` column will null  after running the command above. But if I change the column name to `value_x` (both hive and mysql), it works corretly.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zimmem zimmem zhuang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: