1. 06 6月, 2016 1 次提交
    • H
      Revert contain_vars_of_level() to match the upstream. · 756241e2
      Heikki Linnakangas 提交于
      The function was rewritten in GPDB, and its behaviour was changed to also
      return 'true' if the expression contains an Aggref of the given level.
      That change in behaviour was made back in 2006, as part of a commit
      containing a lot of subquery optimization changes. I could not find an
      explanation for that particular change, and all the regression tests pass
      without so I assume that it has become obsolete at some point over they
      years.
      
      This smoothens the way for future merges with upstream, by reducing the
      diff in both code and behaviour. Also, you get a more accurate error
      message in a few cases, as seen by the changes to expected output.
      756241e2
  2. 05 6月, 2016 1 次提交
  3. 04 6月, 2016 1 次提交
  4. 03 6月, 2016 7 次提交
  5. 02 6月, 2016 3 次提交
  6. 01 6月, 2016 1 次提交
  7. 27 5月, 2016 2 次提交
  8. 19 5月, 2016 1 次提交
  9. 13 5月, 2016 10 次提交
  10. 11 5月, 2016 4 次提交
    • H
      Remove a lot of unnecessary setup steps from qp_misc regression test. · 8eedfe9f
      Heikki Linnakangas 提交于
      There were a lot of unused tables and functions, and chaff like comments
      that are not needed for the actual tests in the file. At first glance,
      some of the things seemed marginally useful to test on their own right,
      like loading data with non-ASCII characters in it, but all the setup
      stuff was in a large ignore-block, so any failures there would go unnoticed
      anyway.
      
      Removing unnecessary stuff is a virtue of its own, but this also speeds up
      the test nicely.
      8eedfe9f
    • H
      Convert test case to Unix line endings. · eb1db513
      Heikki Linnakangas 提交于
      eb1db513
    • H
      Split GPDB additions to create_table test to a separate test. · 35c3c579
      Heikki Linnakangas 提交于
      The stuff that's inherited from upstream stays in create_table, while the
      stuff that we've added in GPDB is split off to gp_create_table. Separating
      them makes merging and diffing with upstream easier.
      35c3c579
    • H
      Remove redundant test case from qp_functions test file. · ac989241
      Heikki Linnakangas 提交于
      The test with stress_test() function (and accompanying tables) was created
      and executed once. Then it was dropped, and recreated, and then executed
      two times. Executing the same function twice might reveal bugs in plan
      caching, so I kept that (although TBH we have better coverage for that
      elsewhere). But I don't see the point of dropping and recreating it in
      between: surely it's good enough to just create the function once, and
      execute it twice.
      
      This reduces the runtime of qp_functions test by about 1/3 (from 3 minutes
      to 2 minutes on my laptop).
      ac989241
  11. 10 5月, 2016 3 次提交
  12. 09 5月, 2016 3 次提交
    • H
      Avoid using "---" in test case, because it confuses gpdiff.pl · 9e1dc1ea
      Heikki Linnakangas 提交于
      To gpdiff.pl, "---" looks like the beginning of a result set, so it sorts
      the rows following that. As long as the test case passes, that doesn't
      matter, but if there's a failure, the output diff is mixed up.
      9e1dc1ea
    • H
      Enhance partition_locking test case to also check locks in segments. · 7b87d7b6
      Heikki Linnakangas 提交于
      While hacking in this area, at one point I broke the code so that a
      partition was not correctly in a segment as it should've been, even though
      it was locked in the master. Fortunately, I noticed that in manual testing
      before committing, but to prevent such bugs from slipping in in the future,
      enhance the 'partition_locking' test to catch that kind of bugs.
      7b87d7b6
    • H
      Change test cases to not rely on implicit int -> text cast. · 6f4986ec
      Heikki Linnakangas 提交于
      The int -> text cast (and many other casts to text) were downgraded
      to assignment casts in the upstream, and we're about to merge that patch
      soon. To prepare for that and to reduce the size of that huge merge
      commit somewhat, adjust GPDB test cases to not rely on those casts that
      are about to be removed.
      
      When the casts were downgraded in the upstream, it revealed a lot of buggy
      queries in applications (or put another way, it broke a lot of applications
      :-) ). Many of the queries in our regression tests look bogus like that
      as well, for example the "sale.dt < 10" comparison in the qp_olap_mdqa test
      (sale.dt is a date). But I didn't try to change the meaning of the queries,
      I just added the casts needed to make them do the same thing they used to.
      I'm afraid that changing the substance of the queries would reduce our
      code coverage, if the tests are reproducing some very specific scenario.
      6f4986ec
  13. 07 5月, 2016 1 次提交
  14. 05 5月, 2016 1 次提交
  15. 03 5月, 2016 1 次提交