Skip to content

Commit ba2ca6e

Browse files
author
Feng, Xixuan (Aaron)
committed
Deprecated DT/RF: fix __validate_input_table
Pivotal Tracker: #87321430 - Found in install-check of GPDB 4.3.3.0 build 1 in OS X
1 parent b7f2783 commit ba2ca6e

File tree

1 file changed

+25
-30
lines changed

1 file changed

+25
-30
lines changed

methods/cart/src/pg_gp/dt_preproc.sql_in

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -283,36 +283,31 @@ BEGIN
283283
stmt= 'SELECT atttypid
284284
FROM pg_attribute
285285
WHERE attrelid ='||quote_literal(full_table_name)||'::regclass AND
286-
attnum > 0 AND
287-
(not attisdropped) AND
288-
atttypid NOT IN
289-
(
290-
SELECT unnest
291-
(
292-
ARRAY[
293-
''SMALLINT''::regtype::oid,
294-
''INT''::regtype::oid,
295-
''BIGINT''::regtype::oid,
296-
''FLOAT8''::regtype::oid,
297-
''REAL''::regtype::oid,
298-
''DECIMAL''::regtype::oid,
299-
''INET''::regtype::oid,
300-
''CIDR''::regtype::oid,
301-
''MACADDR''::regtype::oid,
302-
''BOOLEAN''::regtype::oid,
303-
''CHAR''::regtype::oid,
304-
''VARCHAR''::regtype::oid,
305-
''TEXT''::regtype::oid,
306-
''"char"''::regtype::oid,
307-
''DATE''::regtype::oid,
308-
''TIME''::regtype::oid,
309-
''TIMETZ''::regtype::oid,
310-
''TIMESTAMP''::regtype::oid,
311-
''TIMESTAMPTZ''::regtype::oid,
312-
''INTERVAL''::regtype::oid
313-
]
314-
)
315-
) ';
286+
attnum > 0 AND
287+
(not attisdropped) AND
288+
atttypid NOT IN
289+
(
290+
''SMALLINT''::regtype::oid,
291+
''INT''::regtype::oid,
292+
''BIGINT''::regtype::oid,
293+
''FLOAT8''::regtype::oid,
294+
''REAL''::regtype::oid,
295+
''DECIMAL''::regtype::oid,
296+
''INET''::regtype::oid,
297+
''CIDR''::regtype::oid,
298+
''MACADDR''::regtype::oid,
299+
''BOOLEAN''::regtype::oid,
300+
''CHAR''::regtype::oid,
301+
''VARCHAR''::regtype::oid,
302+
''TEXT''::regtype::oid,
303+
''"char"''::regtype::oid,
304+
''DATE''::regtype::oid,
305+
''TIME''::regtype::oid,
306+
''TIMETZ''::regtype::oid,
307+
''TIMESTAMP''::regtype::oid,
308+
''TIMESTAMPTZ''::regtype::oid,
309+
''INTERVAL''::regtype::oid
310+
) ';
316311

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

0 commit comments

Comments
 (0)