Skip to content

Commit e44919b

Browse files
committed
Add julian day func test and fix assumption in show_partitions()
1 parent c2f44bf commit e44919b

File tree

2 files changed

+326
-1
lines changed

2 files changed

+326
-1
lines changed

sql/functions/show_partitions.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ ELSIF v_control_type IN ('text', 'uuid') THEN
106106
ELSIF v_control_type = 'id' AND v_epoch = 'func' THEN
107107
-- Trim like below since there is no guarantee as to what type of ID it is
108108
v_sql := v_sql || format('
109-
ORDER BY %s(trim( BOTH $QUOTE$''$QUOTE$ from (regexp_match(pg_get_expr(c.relpartbound, c.oid, true), $REGEX$\(([^)]+)\) TO \(([^)]+)\)$REGEX$))[1]::text )::bigint ) %s '
109+
ORDER BY %s(trim( BOTH $QUOTE$''$QUOTE$ from (regexp_match(pg_get_expr(c.relpartbound, c.oid, true), $REGEX$\(([^)]+)\) TO \(([^)]+)\)$REGEX$))[1]::text )::%s ) %s '
110110
, v_time_decoder
111+
, v_exact_control_type
111112
, p_order);
112113

113114
ELSIF v_control_type = 'id' AND v_epoch <> 'none' THEN

0 commit comments

Comments
 (0)