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

Lost time millisecond precision for Time data type when importing

    XMLWordPrintableJSON

    Details

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

      Description

      To re-produce, create a MySQL database with time(6) data type:

      CREATE TABLE `test` (
        `a` time(6) DEFAULT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
      
      INSERT INTO test VALUES ('16:56:53.099999');
      

      Import the data into Sqoop and data will become "16:56:53", the millisecond precision will be lost.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ericlin Eric Lin
                Reporter:
                ericlin Eric Lin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: