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

PTF: Avoid shuffling constant keys for empty OVER()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • PTF-Windowing
    • None

    Description

      Generating surrogate keys with

      select row_number() over() as p_key, * from table; 
      

      uses a sorted edge with "0 ASC NULLS FIRST" as the sort order.

      Attachments

        1. HIVE-16541.2.patch
          47 kB
          Gopal Vijayaraghavan
        2. HIVE-16541.1.patch
          7 kB
          Gopal Vijayaraghavan

        Issue Links

          Activity

            People

              gopalv Gopal Vijayaraghavan
              gopalv Gopal Vijayaraghavan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: