1. 24 Sep, 2016 6 commits
    • Vicențiu Ciorbaru's avatar
      Add a counter for the number of select statements using window functions · 62df3119
      Vicențiu Ciorbaru authored
      The counter is available via SHOW [GLOBAL] STATUS and will be reported
      by the feedback plugin.
      62df3119
    • Vicențiu Ciorbaru's avatar
      MDEV-10669: Crash in SELECT with window function used · 5cb56878
      Vicențiu Ciorbaru authored
      Make sure to call split_sum_func on all items that contain window
      functions, so that all the column references are set up correctly.
      5cb56878
    • Vicențiu Ciorbaru's avatar
      MDEV-10815: Window Function Expressions Wrong Results · 2857ff3c
      Vicențiu Ciorbaru authored
      Fix window function expressions such as win_func() <operator> expr.
      The problem was found in 2 places.
      First, when we have complex expressions containing window functions, we
      can only compute their final value _after_ we have computed the window
      function's values. These values must be stored within the temporary
      table that we are using, before sending them off.
      This is done by performing an extra copy_funcs call before the final
      end_send() call.
      
      Second, such expressions need to have their inner arguments,
      changed such that the references within those arguments point to fields within
      the temporary table.
      Ex: sum(t.a) over (order by t.b) + sum(t.a) over (order by t.b)
      Before this fix, t.a pointed to the original table's a field. In order
      to compute the sum function's value correctly, it needs to point to the
      copy of this field inside the temp table.
      This is done by calling split_sum_func for each argument in the
      expression in turn.
      
      The win.test results have also been updated as they contained wrong
      values for such a use case.
      2857ff3c
    • Vicențiu Ciorbaru's avatar
      Frame bounds using FOLLOWING or PRECEDING can have 0 as cardinal value · 1c724413
      Vicențiu Ciorbaru authored
      This makes them behave exactly like CURRENT ROW. Standard specifies
      unsigned integer, which includes the value 0.
      
      Expand the win_min_max test to include this kind of frame definitions.
      1c724413
    • Vicențiu Ciorbaru's avatar
      Fix compilation failure of TokuDB on BSD-like systems · 954e4653
      Vicențiu Ciorbaru authored
      mincore is defined differently in BSD mincore(void *, size_t, char *) vs
      linux variant of: mincore(void *, size_t, unsigned char *).
      Account for this difference in TokuDB.
      954e4653
    • Sergei Petrunia's avatar
      MDEV-10174: Make the fix for MDEV-8989 enabled by default in 10.2 · a95e384d
      Sergei Petrunia authored
      - Change the default @@optimizer_switch value
      - Adjust the testcases
      a95e384d
  2. 23 Sep, 2016 5 commits
  3. 22 Sep, 2016 12 commits
  4. 21 Sep, 2016 6 commits
  5. 19 Sep, 2016 7 commits
  6. 17 Sep, 2016 2 commits
  7. 16 Sep, 2016 2 commits