Skip to content

Commit a69ba54

Browse files
craig[bot]anuj-agrawal-0705wenyihu6
committed
153469: opt: remove outdated hint for unknown functions in views r=mgartner a=anuj-agrawal-0705 Fixes #151685 Release note: None 158393: mmaprototype: extract relationship building between voter and all-replica constraints r=wenyihu6 a=wenyihu6 Based on top of #158333. Epic: CRDB-55052 Release note: none --- **mmaprototype: extract relationship building between voter and all-replica constraints** Co-authored-by: Anuj <anujagrawal0705@gmail.com> Co-authored-by: wenyihu6 <wenyi@cockroachlabs.com>
3 parents 9192b2b + d977f4c + 5d36212 commit a69ba54

File tree

12 files changed

+381
-91
lines changed

12 files changed

+381
-91
lines changed

pkg/cmd/roachtest/testdata/pg_regress/aggregates.diffs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/aggregates.out --
15971597
select aggfns(a,b,c)
15981598
from (values (1,3,'foo'),(0,null,null),(2,2,'bar'),(3,1,'baz')) v(a,b,c);
15991599
+ERROR: unknown function: aggfns()
1600-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
16011600
select * from agg_view1;
16021601
- aggfns
16031602
------------------------------------------------
@@ -1618,7 +1617,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/aggregates.out --
16181617
from (values (1,3,'foo'),(0,null,null),(2,2,'bar'),(3,1,'baz')) v(a,b,c),
16191618
generate_series(1,3) i;
16201619
+ERROR: unknown function: aggfns()
1621-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
16221620
select * from agg_view1;
16231621
- aggfns
16241622
------------------------------------------------
@@ -1664,7 +1662,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/aggregates.out --
16641662
select aggfns(a,b,c order by b+1)
16651663
from (values (1,3,'foo'),(0,null,null),(2,2,'bar'),(3,1,'baz')) v(a,b,c);
16661664
+ERROR: unknown function: aggfns()
1667-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
16681665
select * from agg_view1;
16691666
- aggfns
16701667
------------------------------------------------
@@ -1684,7 +1681,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/aggregates.out --
16841681
select aggfns(a,a,c order by b)
16851682
from (values (1,3,'foo'),(0,null,null),(2,2,'bar'),(3,1,'baz')) v(a,b,c);
16861683
+ERROR: unknown function: aggfns()
1687-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
16881684
select * from agg_view1;
16891685
- aggfns
16901686
-------------------------------------------------

pkg/cmd/roachtest/testdata/pg_regress/alter_table.diffs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3976,7 +3976,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/alter_table.out -
39763976
and c.relname != 'my_locks'
39773977
group by c.relname;
39783978
+ERROR: unknown function: pg_current_xact_id()
3979-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
39803979
create table alterlock (f1 int primary key, f2 text);
39813980
insert into alterlock values (1, 'foo');
39823981
create table alterlock2 (f3 int primary key, f1 int);
@@ -4205,7 +4204,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/alter_table.out -
42054204
and c.relname = 'my_locks'
42064205
group by c.relname;
42074206
+ERROR: unknown function: pg_current_xact_id()
4208-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
42094207
-- raise exception
42104208
alter table my_locks set (autovacuum_enabled = false);
42114209
-ERROR: unrecognized parameter "autovacuum_enabled"

pkg/cmd/roachtest/testdata/pg_regress/create_view.diffs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/create_view.out -
20612061
+
20622062
create view tt14v as select t.* from tt14f() t;
20632063
+ERROR: unknown function: tt14f()
2064-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
20652064
select pg_get_viewdef('tt14v', true);
20662065
- pg_get_viewdef
20672066
---------------------------------
@@ -2185,7 +2184,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/create_view.out -
21852184
+ERROR: relation "tt14v" does not exist
21862185
create view tt14v as select t.f1, t.f4 from tt14f() t;
21872186
+ERROR: unknown function: tt14f()
2188-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
21892187
select pg_get_viewdef('tt14v', true);
21902188
- pg_get_viewdef
21912189
---------------------------------

pkg/cmd/roachtest/testdata/pg_regress/plpgsql.diffs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/plpgsql.out --lab
635635
pslot_slotlink_view(PF.slotname) as patch
636636
from PSlot PF;
637637
+ERROR: unknown function: pslot_backlink_view()
638-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
639638
--
640639
-- First we build the house - so we create the rooms
641640
--

pkg/cmd/roachtest/testdata/pg_regress/privileges.diffs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3143,7 +3143,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/privileges.out --
31433143
-- REFRESH of this MV will queue a GRANT at end of transaction
31443144
CREATE MATERIALIZED VIEW sro_mv AS SELECT mv_action() WITH NO DATA;
31453145
+ERROR: unknown function: mv_action()
3146-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
31473146
REFRESH MATERIALIZED VIEW sro_mv;
31483147
-ERROR: cannot create a cursor WITH HOLD within security-restricted operation
31493148
-CONTEXT: SQL function "mv_action" statement 1

pkg/cmd/roachtest/testdata/pg_regress/rangefuncs.diffs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/rangefuncs.out --
325325
+ERROR: unknown function: getrngfunc8()
326326
CREATE VIEW vw_getrngfunc AS SELECT * FROM getrngfunc8(1);
327327
+ERROR: unknown function: getrngfunc8()
328-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
329328
SELECT * FROM vw_getrngfunc;
330329
- getrngfunc8
331330
--------------
@@ -337,7 +336,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/rangefuncs.out --
337336
+ERROR: relation "vw_getrngfunc" does not exist
338337
CREATE VIEW vw_getrngfunc AS SELECT * FROM getrngfunc8(1) WITH ORDINALITY AS t1(v,o);
339338
+ERROR: unknown function: getrngfunc8()
340-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
341339
SELECT * FROM vw_getrngfunc;
342340
- v | o
343341
----+---
@@ -366,7 +364,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/rangefuncs.out --
366364
+ERROR: unknown function: getrngfunc9()
367365
CREATE VIEW vw_getrngfunc AS SELECT * FROM getrngfunc9(1);
368366
+ERROR: unknown function: getrngfunc9()
369-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
370367
SELECT * FROM vw_getrngfunc;
371368
- rngfuncid | rngfuncsubid | rngfuncname
372369
------------+--------------+-------------
@@ -378,7 +375,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/rangefuncs.out --
378375
+ERROR: relation "vw_getrngfunc" does not exist
379376
CREATE VIEW vw_getrngfunc AS SELECT * FROM getrngfunc9(1) WITH ORDINALITY AS t1(a,b,c,o);
380377
+ERROR: unknown function: getrngfunc9()
381-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
382378
SELECT * FROM vw_getrngfunc;
383379
- a | b | c | o
384380
----+---+-----+---
@@ -419,7 +415,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/rangefuncs.out --
419415
getrngfunc1(1))
420416
with ordinality as t1(a,b,c,d,e,f,g,n);
421417
+ERROR: unknown function: getrngfunc9()
422-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
423418
select * from vw_rngfunc;
424419
- a | b | c | d | e | f | g | n
425420
----+---+-----+---+---+-----+---+---
@@ -1906,7 +1901,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/rangefuncs.out --
19061901
create temp view usersview as
19071902
SELECT * FROM ROWS FROM(get_users(), generate_series(10,11)) WITH ORDINALITY;
19081903
+ERROR: unknown function: get_users()
1909-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
19101904
select * from usersview;
19111905
- userid | seq | email | moredrop | enabled | generate_series | ordinality
19121906
---------+-----+--------+----------+---------+-----------------+------------

pkg/cmd/roachtest/testdata/pg_regress/rules.diffs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/rules.out --label
12291229
AND rsl.sl_len_cm >= rsh.slminlen_cm
12301230
AND rsl.sl_len_cm <= rsh.slmaxlen_cm;
12311231
+ERROR: unknown function: int4smaller()
1232-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
12331232
INSERT INTO unit VALUES ('cm', 1.0);
12341233
INSERT INTO unit VALUES ('m', 100.0);
12351234
INSERT INTO unit VALUES ('inch', 2.54);

pkg/cmd/roachtest/testdata/pg_regress/xml.diffs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -980,14 +980,12 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/xml_1.out --label
980980
-- Test backwards parsing
981981
CREATE VIEW xmlview1 AS SELECT xmlcomment('test');
982982
+ERROR: unknown function: xmlcomment()
983-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
984983
CREATE VIEW xmlview2 AS SELECT xmlconcat('hello', 'you');
985984
-ERROR: unsupported XML feature
986985
-LINE 1: CREATE VIEW xmlview2 AS SELECT xmlconcat('hello', 'you');
987986
- ^
988987
-DETAIL: This functionality requires the server to be built with libxml support.
989988
+ERROR: unknown function: xmlconcat()
990-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
991989
CREATE VIEW xmlview3 AS SELECT xmlelement(name element, xmlattributes (1 as ":one:", 'deuce' as two), 'content&');
992990
-ERROR: unsupported XML feature
993991
-DETAIL: This functionality requires the server to be built with libxml support.
@@ -1004,7 +1002,6 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/xml_1.out --label
10041002
+ ^
10051003
CREATE VIEW xmlview5 AS SELECT xmlparse(content '<abc>x</abc>');
10061004
+ERROR: unknown function: xmlparse()
1007-
+HINT: There is probably a typo in function name. Or the intention was to use a user-defined function in the view query, which is currently not supported.
10081005
CREATE VIEW xmlview6 AS SELECT xmlpi(name foo, 'bar');
10091006
-ERROR: unsupported XML feature
10101007
-DETAIL: This functionality requires the server to be built with libxml support.

0 commit comments

Comments
 (0)