XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Statistics
    • None

    Description

      Hive auto-gather of table statistics can result in incorrect generation of stats (and the stats being marked as accurate) in the case of external tables where the data is being written by external apps.
      To avoid this issue, stats autogather will be disabled on external tables when loading/inserting into a table with existing data, if HIVE_DISABLE_UNSAFE_EXTERNALTABLE_OPERATIONS is enabled. In this situation, users should rely on explicitly calling ANALYZE TABLE on their external tables to make sure the stats are kept up-to-date.
      Autogather of stats will still be allowed to occur on external tables in the case of INSERT OVERWRITE or LOAD DATA OVERWRITE, since the existing data is being removed and so the stats calculated on the inserted/loaded data should be accurate.

      Attachments

        Issue Links

          Activity

            People

              jdere Jason Dere
              jdere Jason Dere
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: