Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7868

AvroSerDe error handling could be improved

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

      When an Avro schema is invalid, AvroSerDe returns an error message instead of throwing an exception. This is described in AvroSerdeUtils.determineSchemaOrReturnErrorSchema:

        /**
         * Attempt to determine the schema via the usual means, but do not throw
         * an exception if we fail.  Instead, signal failure via a special
         * schema.  This is used because Hive calls init on the serde during
         * any call, including calls to update the serde properties, meaning
         * if the serde is in a bad state, there is no way to update that state.
         */
      

      I believe we should find a way to provide a better experience to our users.

      Attachments

        1. HIVE-7868.2.patch
          22 kB
          Ferdinand Xu
        2. HIVE-7868.1.patch
          16 kB
          Ferdinand Xu

        Issue Links

          Activity

            People

              Ferd Ferdinand Xu
              brocknoland Brock Noland
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: