Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2536

Make ColumnType constructor explicit to prevent certain bugs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Impala 2.3.0
    • Impala 4.0.0
    • Backend

    Description

      We currently rely on the ColumnType(PrimitiveType) constructor not being marked explicit (e.g. we use type == TYPE_FOO in many places), but it allows for bugs if we accidentally pass in e.g. ints instead of types. We should be using type.type == TYPE_FOO anyway.

      Attachments

        Activity

          People

            tarmstrong Tim Armstrong
            skye Skye Wanderman-Milne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: