1. 20 Feb, 2016 1 commit
  2. 17 Feb, 2016 1 commit
    • Sergei Petrunia's avatar
      MDEV-9526: Compute Aggregate functions as window functions · be158582
      Sergei Petrunia authored
      - Add temporary code: clone_read_record() clones READ_RECORD structure,
        as long as it is used for reading filesort() result that fits into
        memory.
      - Add frame bounds for ROWS-type frames. ROWS n PRECEDING|FOLLOWING,
        ROWS UNBOUNDED PRECEDING|FOLLOWING, CURRENT ROW are supported.
      - Add Item_sum_count::remove() which allows "streaming" computation
        of COUNT() over a moving frame.
      be158582
  3. 15 Feb, 2016 5 commits
  4. 14 Feb, 2016 11 commits
  5. 13 Feb, 2016 3 commits
  6. 09 Feb, 2016 1 commit
    • Igor Babaev's avatar
      This is the consolidated patch for mdev-8646: · 2cfc450b
      Igor Babaev authored
      "Re-factor the code for post-join operations".
      
      The patch mainly contains the code ported from mysql-5.6 and
      created for two essential architectural changes:
      1. WL#5558: Resolve ORDER BY execution method at the optimization stage
      2. WL#6071: Inline tmp tables into the nested loops algorithm
      
      The first task was implemented for mysql-5.6 by Ole John Aske.
      It allows to make all decisions on ORDER BY operation at the optimization
      stage.
      
      The second task implemented for mysql-5.6 by Evgeny Potemkin adds JOIN_TAB
      nodes for post-join operations that require temporary tables. It allows
      to execute these operations within the nested loops algorithm that used to
      be used before this task only for join queries. Besides these task moves
      all planning on the execution of these operations from the execution phase
      to the optimization phase.
      
      Some other re-factoring changes of mysql-5.6 were pulled in, mainly because
      it was easier to pull them in than roll them back. In particular all
      changes concerning Ref_ptr_array were incorporated.
      
      The port required some changes in the MariaDB code that concerned the
      functionality of EXPLAIN and ANALYZE. This was done mainly by Sergey
      Petrunia.
      2cfc450b
  7. 16 Jan, 2016 1 commit
    • Alexander Barkov's avatar
      MDEV-9407 Illegal mix of collation when using GROUP_CONCAT in a VIEW · 7b50447a
      Alexander Barkov authored
      MDEV-9408 CREATE TABLE SELECT MAX(int_column) creates different columns for table vs view
      
      There were three almost identical pieces of the code:
      - Field *Item_func::tmp_table_field();
      - Field *Item_sum::create_tmp_field();
      - Field *create_tmp_field_from_item();
      with a difference in very small details (hence the bugs):
      Only Item_func::tmp_table_field() was correct, the other two were not.
      Removing the two incorrect pieces of the redundant code.
      Joining these three functions/methods into a single virtual method
      Item::create_tmp_field().
      Additionally, moving Item::make_string_field() and
      Item::tmp_table_field_from_field_type() from the public into the
      protected section of the class declaration, as they are now not
      needed outside of Item.
      7b50447a
  8. 14 Jan, 2016 1 commit
  9. 12 Jan, 2016 1 commit
  10. 11 Jan, 2016 1 commit
  11. 30 Dec, 2015 2 commits
  12. 29 Dec, 2015 12 commits