Skip to content

Commit

Permalink
Deprecated DT/RF: fix __validate_input_table
Browse files Browse the repository at this point in the history
Pivotal Tracker: #87321430

- Found in install-check of GPDB 4.3.3.0 build 1 in OS X
  • Loading branch information
Feng, Xixuan (Aaron) committed Mar 17, 2015
1 parent b7f2783 commit ba2ca6e
Showing 1 changed file with 25 additions and 30 deletions.
55 changes: 25 additions & 30 deletions methods/cart/src/pg_gp/dt_preproc.sql_in
Original file line number Diff line number Diff line change
Expand Up @@ -283,36 +283,31 @@ BEGIN
stmt= 'SELECT atttypid
FROM pg_attribute
WHERE attrelid ='||quote_literal(full_table_name)||'::regclass AND
attnum > 0 AND
(not attisdropped) AND
atttypid NOT IN
(
SELECT unnest
(
ARRAY[
''SMALLINT''::regtype::oid,
''INT''::regtype::oid,
''BIGINT''::regtype::oid,
''FLOAT8''::regtype::oid,
''REAL''::regtype::oid,
''DECIMAL''::regtype::oid,
''INET''::regtype::oid,
''CIDR''::regtype::oid,
''MACADDR''::regtype::oid,
''BOOLEAN''::regtype::oid,
''CHAR''::regtype::oid,
''VARCHAR''::regtype::oid,
''TEXT''::regtype::oid,
''"char"''::regtype::oid,
''DATE''::regtype::oid,
''TIME''::regtype::oid,
''TIMETZ''::regtype::oid,
''TIMESTAMP''::regtype::oid,
''TIMESTAMPTZ''::regtype::oid,
''INTERVAL''::regtype::oid
]
)
) ';
attnum > 0 AND
(not attisdropped) AND
atttypid NOT IN
(
''SMALLINT''::regtype::oid,
''INT''::regtype::oid,
''BIGINT''::regtype::oid,
''FLOAT8''::regtype::oid,
''REAL''::regtype::oid,
''DECIMAL''::regtype::oid,
''INET''::regtype::oid,
''CIDR''::regtype::oid,
''MACADDR''::regtype::oid,
''BOOLEAN''::regtype::oid,
''CHAR''::regtype::oid,
''VARCHAR''::regtype::oid,
''TEXT''::regtype::oid,
''"char"''::regtype::oid,
''DATE''::regtype::oid,
''TIME''::regtype::oid,
''TIMETZ''::regtype::oid,
''TIMESTAMP''::regtype::oid,
''TIMESTAMPTZ''::regtype::oid,
''INTERVAL''::regtype::oid
) ';

IF (feature_columns IS NOT NULL) THEN
-- If user do not specify feature columns, we use all those columns.
Expand Down

0 comments on commit ba2ca6e

Please sign in to comment.