1. 06 11月, 2018 6 次提交
  2. 05 11月, 2018 10 次提交
    • H
      Make more use of make_dist_clause(). · c0d1dbd6
      Heikki Linnakangas 提交于
      We had duplicated code in a few places, to reconstruct a DistributedBy
      clause from policy of an existing relation. Use the existing function
      to do that.
      
      Rename the function to make_distributedby_for_rel(). That's a more
      descriptive name.
      Reviewed-by: NNing Yu <nyu@pivotal.io>
      c0d1dbd6
    • H
      Remove duplicated equality check. · 636d8f4c
      Heikki Linnakangas 提交于
      loci_compatible() performs a more relaxed check than equal(). Doing the
      more stringent equal() check first is a waste of time.
      636d8f4c
    • H
      Remove unused code to check whether locus is a superset of another locus. · 88dca9f4
      Heikki Linnakangas 提交于
      All callers of cdbpathlocus_compare were asking for strict equality
      check.
      88dca9f4
    • H
      Remove unnecessary GPDB code to transform PathKeys of index paths. · 35de26e5
      Heikki Linnakangas 提交于
      As far as I can tell, GPDB works the same as PostgreSQL with regards to
      path keys used for append rels, so I don't see why we'd need to do any
      transformation here. Regression tests are passing without it.
      
      This code has been moved around as part of the 9.2 merge, and some other
      cleanup, but goes all the way back to 2007 in the old pre-open sourcing
      repository. The commit that introduced was a massive commit with message
      "Merge of Release-3_1_0_0-alpha1-branch branch down to HEAD", so I lost the
      trace of its origin there. I guess it was needed back then, but seems
      unnecessary now.
      35de26e5
    • H
      Add test case about shell-quoting in COPY PROGRAM · 4037f51b
      Heikki Linnakangas 提交于
      Notes in testcase about backslash escaping:
      - Need to add ESCAPE 'OFF' to COPY ... PROGRAM
      - echo will behaves differently on different platforms, force to use bash shell with -E option.
      Signed-off-by: NMing LI <liming01@gmail.com>
      4037f51b
    • M
      Fixed error escaping single quote format of shell command for web external table · d8184ad4
      Ming LI 提交于
      1) Fixes github issue https://github.com/greenplum-db/gpdb/issues/5925:
      If environment variable value contains single quote, it will report error:
      
      ```
      ERROR:  external table env command ended with error. sh: -c: line 0: unexpected EOF while looking for matching `''  (seg0 slice1 172.31.81.199:6000 pid=7192)
      DETAIL:
      sh: -c: line 1: syntax error: unexpected end of file
      ```
      
      The external program executed with COPY PROGRAM or EXECUTE-type external
      table is passed a bunch of environment variables. They are passed by
      adding them to the command line of the program being executed, with
      "<var>=<value> && export VAR && ...". However, the quoting in the code
      that builds that command line was broken. Fix it, and add a test.
      
      2) It also fixed: a backslash should not be escaped by duplicating the backslash.
      Using single quote as shell quote, only need to escape ' to '\'', no need to escape backslash.
      Most escaping problem occurs during display the value.
      
      Notes in testcase about backslash escaping:
      - Need to add ESCAPE 'OFF' to EXTERNAL WEB TABLE
      - Need to add ESCAPE '&' for LIKE predicate
      - For shell 'env' output, don't seperate to 2 columns because CI env has funny char
        in variable value. e.g.
          "LS_OPTIONS=-N --color=tty -T 0" and
          "LESSOPEN=||/usr/bin/lesspipe.sh %s"
      - echo will behaves differently on different platforms, force to use bash shell with -E option.
      d8184ad4
    • M
      Export env variable GP_QUERY_STRING for web external table · e49bdc12
      Ming Li 提交于
      Signed-off-by: NTingfang Bao <bbao@pivotal.io>
      e49bdc12
    • B
    • D
      Remove duplicate comment in parser · 20f4dfd5
      Daniel Gustafsson 提交于
      The duplication arose due to Greenplum backporting a commit which
      we've now gained via the merge. Remove the hunk which came via the
      backport to align us more with upstream.
      20f4dfd5
    • H
      Fix checking for duplicated columns in DISTRIBUTED BY · 9bb4cbf2
      Heikki Linnakangas 提交于
      The check in the parser didn't recurse correctly, and therefore only
      checked whether the last DISTRIBUTED BY column was the same as any previous
      one. As long as the last column was unique, duplicates elsewhere in the
      list were ignored.
      Reviewed-by: NShaoqi Bai <sbai@pivotal.io>
      9bb4cbf2
  3. 03 11月, 2018 6 次提交
  4. 02 11月, 2018 1 次提交
    • Z
      Fix bug: reshuffle should work with table with OIDs. · 4e8c85a6
      Zhenghua Lyu 提交于
      Current reshuffle implementation is based on split-update.
      Previously, We mark a query split-update if the query is an
      UPDATE and it updates some of the table's hash distribution
      columns. We should also mark the query split-update when it is
      a reshuffle, even if it's not a hash-distributed table.
      4e8c85a6
  5. 01 11月, 2018 17 次提交