Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-13139

DB Source should treat decimal(n,0) and numeric(n,0) as integers not floats

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.3
    • Fix Version/s: 4.3.4
    • Component/s: Pipeline Plugins
    • Labels:
      None
    • Release Notes:
      Improves the schema generation fro database sources.
    • Rank:
      1|i00b0f:

      Description

      Currently, when generating the output schema from the SQL schema, all numeric and decimal types are mapped to double. However, if the scale (number of digits after the period) is 0, then they are always integers, and we could use int or long, depending on the precision (number of digits).

        Attachments

          Activity

            People

            • Assignee:
              andreas Andreas Neumann
              Reporter:
              andreas Andreas Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: