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

DecimalValue should be marked as packed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 3.1.0
    • None
    • Backend
    • None

    Description

      IMPALA-7473 was a symptom of a more general problem that DecimalValue is not guaranteed to be aligned by the Impala runtime, but the class is not marked as packed and, under some circumstances, GCC will emit code for aligned loads to value_ when value_ is an int128.

      Testing helps confirm that the compiler does not emit the problematic loads in practice, but it would be better to mark the struct as packed.

      Attachments

        Issue Links

          Activity

            People

              daniel.becker Daniel Becker
              tarmstrong Tim Armstrong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: