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

Limit don't apply on Distribute clause

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3.1
    • Fix Version/s: None
    • Component/s: Query Planning
    • Labels:
      None

      Description

      In this code, the limit=1000 doesn't have expected result

       

      INSERT OVERWRITE TABLE myNewTable partition (col1, col2)
       select 
       . . . 
       from  mySource
       distribute by (floor(myColumn/2646 - + 1)/ 20 ) sort by merchant_fk
       limit 1000;
      select count (1) from ft_informes_trafico_stats_hdfs_arp;
       >> 3001
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              albertoramon albertoramon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: