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

The global limit invalidates the subquery order by

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.1
    • None
    • CBO, Parser
    • None

    Description

      create table test_1009(id int);
      insert into table test_1009 values(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13);
      select * from (select * from test_1009 order by id desc) a limit 10;

       

      -------

      a.id

      -------

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10

       

      -----------------------

      the right result should be 

      -------

      a.id

      -------

      13
      12
      11
      10
      9
      8
      7
      6
      5
      4

      -------

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            fasheng jinwensc
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: