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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.4.6
    • None
    • tools
    • 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

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

            Dates

              Created:
              Updated: