1. 12 9月, 2017 10 次提交
  2. 11 9月, 2017 4 次提交
    • X
      gpcheckcloud: append new line to files who miss it · 650584c1
      Xiaoran Wang 提交于
      gpcheckcloud will append new line to files who miss it, so that the
      ending line won't concatenated with the first line of next file.
      
      Add an option gpcheckcloud_newline to support configuring new line, will
      report error with other new line than LF, CRLF or CR.
      Signed-off-by: NXiaoran Wang <xiwang@pivotal.io>
      650584c1
    • H
      Refactor the removal of DISTINCT and ORDER BY, to reuse the existing code. · c44c4603
      Heikki Linnakangas 提交于
      In commit d16710ca, I added an optimization to NOT IN subqueries, to
      remove any DISTINCT and ORDER BY. But on second thoughts, we should use the
      existing functions to do that. Also, the add_notin_subquery_rte() was not
      a good place to do it. It's a surprising side-effect for that function.
      Move the code to convert_IN_to_antijoin(), which is in line with the
      similar calls in convert_EXPR_to_join() and convert_IN_to_join().
      c44c4603
    • H
      Run autoheader. · d2d19823
      Heikki Linnakangas 提交于
      pg_config.h.in is generated by autoheader, but it had fallen out of date.
      Has everyone just been adding stuff manually to it, or how did this happen?
      In any case, let's run it now.
      d2d19823
    • H
      Optimize away DISTINCT and ORDER BY in a NOT IN (...) subselect. · d16710ca
      Heikki Linnakangas 提交于
      It occurred to me while looking at PR #1460 that when there's a DISTINCT or
      an ORDER BY in a subselect NOT IN (...) subselect won't make any difference
      to the overall result, so we can strip it off and safe the effort. In its
      current form, PR #1460 would pessimize that case slightly more, by forcing
      the subselect's resul to be gathered to a singled node for deduplication or
      final ordering, while before, we would do only a local ordering /
      deduplication on each segment. But it is a waste of effort to do that
      even within each segment, and this PR gets rid of that.
      d16710ca
  3. 09 9月, 2017 7 次提交
    • H
      Fix assertion failure with window aggregates and ORCA. · a08b6e83
      Heikki Linnakangas 提交于
      Remove the assertion that WindowRef.winagg is set correctly in the
      executor, because it won't be if the plan was generated by ORCA.
      a08b6e83
    • M
      8aca2fe4
    • H
      Update README.md for building GPDB on centos · de4371b8
      Haisheng Yuan 提交于
      Add required steps before building GPDB on centos.
      Fixes issue #2715, #2995 and #3163.
      
      [ci skip]
      de4371b8
    • X
      ATExecSetDistributedBy: Fix ALTER TABLE ... SET (REORGANIZE) · 31fd953d
      Xin Zhang 提交于
      Originally, if the REORGANIZE option is used, and the source and target
      tables got same partition distribution policy, then the redistribute is
      skipped. This is due to the nature of planner optimizer will skip
      reshuffle if the source and target distribution policy match.
      
      However, if both source and target distribution policies are random,
      then planner will generate a redistribution motion to balance the tuples
      across the cluster.
      
      Leveraging that thought, we added new code path to temporarily set the
      source table's distribution policy to random while executing the CTAS
      query, and hence the optimizer can generate the proper query plan with
      `redistribute motion`. We restore the policy after creating the
      temporary table.
      
      Test cases are added to show case the scenario where a table is loaded
      with data inconsistent with its distribution policy when using
      COPY ... ON SEGMENT. The second case catches a regression when using
      SET WITH (REORGANIZE = TRUE) DISTRIBUTED RANDOMLY.
      Signed-off-by: NJacob Champion <pchampion@pivotal.io>
      31fd953d
    • D
      Docs: Reorg of loading/unloading data section (#3210) · 65774147
      David Yozie 提交于
      * reorganizing / promoting external tables topic
      
      * correcting graphics locations
      
      * more reorg and consolidation of topics
      
      * promoting shortdescs, consolidating web table topics
      
      * removing duplicate, manual chapter toc
      
      * promoting more shortdesc's, removing more manual tocs
      
      * changing title of hdfs section
      
      * promoting gphdfs section, removing oveverview section that mentions pxf
      
      * adding shortdesc to gphdfs topic
      65774147
    • H
      Dump COUNT(*) OVER (...) correctly, with the star. · 387c485d
      Heikki Linnakangas 提交于
      This adds the 'winstar' field from the upstream. Also bring in the 'winagg'
      field while we're at it, although it's only used for an assertion in
      nodeWindow.c so far.
      387c485d
    • H
      Add tests for views over window functions. · 5e014c76
      Heikki Linnakangas 提交于
      5e014c76
  4. 08 9月, 2017 19 次提交