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

Sqoop2: SqoopIDFUtils handling of decimal need to be fixed

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.99.5
    • Component/s: None
    • Labels:
      None

      Description

      we need to handle scale and precision and make sure we instantiate the bigDecimal correctly

      We also need to make scale and precision mandatory to avoid confusion for connectors while they map their types

      public class Decimal extends AbstractNumber {
      
        /**
         * Number of valid numbers.
         */
        private Long precision;
      
        /**
         * Number of decimal places.
         */
        private Long scale;
      
      

      IDF java handling today is very lame!

        public static Object toDecimal(String csvString, Column column) {
          return new BigDecimal(csvString);
        }
      

      3. there is no single unit test today with the values for precision and scale, so we need to define what those values are for Long

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              vybs Veena Basavaraj
              Reporter:
              vybs Veena Basavaraj

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment