Comments (2)
On 20/01/16 12:35, liruto wrote:
Supposed the first argument is given a VAR node,
'contains_nonconstant_walker' would return FALSE It's obviously wrong
that VAR doesn't contain anything non-constant,isn't it?
Hmm, I think you're right. The saving grace is that the function is used
only in one place, to test if an INSERT .. VALUES() contains anything
but constants. I believe there can't be any Vars in the list in that
context. It would still be prudent to check, IMO.
Also, why does the walker call contain_volatile_functions() on every
node it traverses? That's a waste of time, as
contain_volatile_functions() recurses; it'd be enough to call it once at
the root node.
Poking around that case, I bumped up into this:
create table pt (i int, j int, k int) distributed by (i) partition by
range(k)
(start(1) end(10) every(2));
alter table pt_1_prt_2 set distributed randomly;
insert into pt values (1, 1, random());
psql:/tmp/pt-const-bug.sql:4: FATAL: Unexpected internal error
(cdbmutate.c:564)
DETAIL: FailedAssertion("!(((((Node*)(tle->expr))->type) == T_Const))",
File: "cdbmutate.c", Line: 564)
HINT: Process 20240 will wait for gp_debug_linger=120 seconds before
termination.
Note that its locks and other resources will not be released until then.
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
I'm not sure what, but there's something wrong there..
- Heikki
from gpdb.
Fixed, by PR #2972. Thanks for the report!
from gpdb.
Related Issues (20)
- External writable table - one target file instead of file per segment
- Find bug "ERROR: token for user id: 10, session: 11 doesn't exist (cdbendpoint.c:942)" when I use PARALLEL RETRIEVE CURSOR HOT 1
- gppkg in version 7 issues HOT 4
- Madlib packaging issue in Greenplum 7 for madlib 2.1.0 rhel8 HOT 2
- REGRESSION: Queries that works in releases prior to 7, fails in 7 HOT 6
- EXCEPT over no columns reports ERROR: unexpected gang size HOT 1
- Maybe we should not cancel unfinished parallel retrieve cursor when retrieve connection exiting? HOT 3
- GPDB7 gp_toolkit.gp_partitions partition_level differs from GPDB6 pg_partitions partition_level HOT 2
- GPDB7 REGRESSION: Removal of appendonly from reloptions, how to tell now that a parent table of a partitioned table was created with appendonly? HOT 7
- GPDB7 REGRESSION: pg_partition_columns "comparable view" in documentation is not comparable HOT 5
- ERROR: variable not found in subplan target list (setrefs.c:2555) HOT 1
- How to read the storage files of an AO table and recover the data as much as possible. HOT 4
- Memory pool is necessary! HOT 3
- The global deadlock detected process of the greenplum master node has abnormal RSS memory usage. HOT 29
- Incorrect version in configure.in file. HOT 2
- could not access status of transaction 70523908 (slru.c:896) HOT 1
- How Greenplum views the amount of data exchanged between cross data nodes in motion in a distributed execution plan๏ผ HOT 2
- ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list HOT 1
- GPDB7 REGRESSION: External partitions isn't working as documented or as gpdb6 worked HOT 5
- REINDEX the primary key result in a key conflict issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpdb.