22
22
GoogleBadRequest ,
23
23
MySQLOperationalError ,
24
24
PolarsComputeError ,
25
- PsycoPgIndeterminateDatatype ,
25
+ PsycoPg2ArraySubscriptError ,
26
+ PsycoPg2IndeterminateDatatype ,
27
+ PsycoPg2InternalError ,
28
+ PsycoPg2ProgrammingError ,
29
+ PsycoPg2SyntaxError ,
26
30
PsycoPgInternalError ,
27
- PsycoPgInvalidTextRepresentation ,
28
- PsycoPgProgrammingError ,
29
31
PsycoPgSyntaxError ,
30
32
Py4JJavaError ,
31
33
PyAthenaDatabaseError ,
@@ -504,7 +506,7 @@ def test_array_slice(backend, start, stop):
504
506
)
505
507
@pytest .mark .notimpl (
506
508
["risingwave" ],
507
- raises = PsycoPgInternalError ,
509
+ raises = PsycoPg2InternalError ,
508
510
reason = "TODO(Kexiang): seems a bug" ,
509
511
)
510
512
@pytest .mark .notimpl (["athena" ], raises = PyAthenaDatabaseError )
@@ -563,7 +565,7 @@ def test_array_map(con, input, output, func):
563
565
)
564
566
@pytest .mark .notimpl (
565
567
["risingwave" ],
566
- raises = PsycoPgInternalError ,
568
+ raises = PsycoPg2InternalError ,
567
569
reason = "TODO(Kexiang): seems a bug" ,
568
570
)
569
571
@pytest .mark .notimpl (["athena" ], raises = PyAthenaDatabaseError )
@@ -644,7 +646,7 @@ def test_array_map_with_index(con, input, output, func):
644
646
)
645
647
@pytest .mark .notyet (
646
648
"risingwave" ,
647
- raises = PsycoPgInternalError ,
649
+ raises = PsycoPg2InternalError ,
648
650
reason = "no support for not null column constraint" ,
649
651
)
650
652
@pytest .mark .parametrize (
@@ -691,7 +693,7 @@ def test_array_filter(con, input, output, predicate):
691
693
)
692
694
@pytest .mark .notyet (
693
695
"risingwave" ,
694
- raises = PsycoPgInternalError ,
696
+ raises = PsycoPg2InternalError ,
695
697
reason = "no support for not null column constraint" ,
696
698
)
697
699
@pytest .mark .parametrize (
@@ -738,7 +740,7 @@ def test_array_filter_with_index(con, input, output, predicate):
738
740
)
739
741
@pytest .mark .notyet (
740
742
"risingwave" ,
741
- raises = PsycoPgInternalError ,
743
+ raises = PsycoPg2InternalError ,
742
744
reason = "no support for not null column constraint" ,
743
745
)
744
746
@pytest .mark .parametrize (
@@ -1114,8 +1116,8 @@ def test_unnest_struct(con):
1114
1116
1115
1117
1116
1118
@builtin_array
1117
- @pytest .mark .notimpl (["postgres" ], raises = PsycoPgSyntaxError )
1118
- @pytest .mark .notimpl (["risingwave" ], raises = PsycoPgInternalError )
1119
+ @pytest .mark .notimpl (["postgres" ], raises = PsycoPg2SyntaxError )
1120
+ @pytest .mark .notimpl (["risingwave" ], raises = PsycoPg2InternalError )
1119
1121
@pytest .mark .notimpl (
1120
1122
["trino" ], reason = "inserting maps into structs doesn't work" , raises = TrinoUserError
1121
1123
)
@@ -1205,8 +1207,8 @@ def test_zip_null(con, fn):
1205
1207
1206
1208
1207
1209
@builtin_array
1208
- @pytest .mark .notimpl (["postgres" ], raises = PsycoPgSyntaxError )
1209
- @pytest .mark .notimpl (["risingwave" ], raises = PsycoPgProgrammingError )
1210
+ @pytest .mark .notimpl (["postgres" ], raises = PsycoPg2SyntaxError )
1211
+ @pytest .mark .notimpl (["risingwave" ], raises = PsycoPg2ProgrammingError )
1210
1212
@pytest .mark .notimpl (["datafusion" ], raises = Exception , reason = "not yet supported" )
1211
1213
@pytest .mark .notimpl (
1212
1214
["polars" ],
@@ -1276,21 +1278,12 @@ def flatten_data():
1276
1278
["bigquery" ], reason = "BigQuery doesn't support arrays of arrays" , raises = TypeError
1277
1279
)
1278
1280
@pytest .mark .notyet (
1279
- ["postgres" ],
1281
+ ["postgres" , "risingwave" ],
1280
1282
reason = "Postgres doesn't truly support arrays of arrays" ,
1281
1283
raises = (
1282
1284
com .OperationNotDefinedError ,
1283
- PsycoPgIndeterminateDatatype ,
1284
- PsycoPgInternalError ,
1285
- ),
1286
- )
1287
- @pytest .mark .notyet (
1288
- ["risingwave" ],
1289
- reason = "Risingwave doesn't truly support arrays of arrays" ,
1290
- raises = (
1291
- com .OperationNotDefinedError ,
1292
- PsycoPgIndeterminateDatatype ,
1293
- PsycoPgInternalError ,
1285
+ PsycoPg2IndeterminateDatatype ,
1286
+ PsycoPg2InternalError ,
1294
1287
),
1295
1288
)
1296
1289
@pytest .mark .parametrize (
@@ -1397,7 +1390,7 @@ def test_range_start_stop_step(con, start, stop, step):
1397
1390
@pytest .mark .notimpl (["flink" ], raises = com .OperationNotDefinedError )
1398
1391
@pytest .mark .never (
1399
1392
["risingwave" ],
1400
- raises = PsycoPgInternalError ,
1393
+ raises = PsycoPg2InternalError ,
1401
1394
reason = "Invalid parameter step: step size cannot equal zero" ,
1402
1395
)
1403
1396
def test_range_start_stop_step_zero (con , start , stop ):
@@ -1430,7 +1423,7 @@ def test_unnest_empty_array(con):
1430
1423
@pytest .mark .notimpl (["sqlite" ], raises = com .UnsupportedBackendType )
1431
1424
@pytest .mark .notyet (
1432
1425
"risingwave" ,
1433
- raises = PsycoPgInternalError ,
1426
+ raises = PsycoPg2InternalError ,
1434
1427
reason = "no support for not null column constraint" ,
1435
1428
)
1436
1429
@pytest .mark .notimpl (["athena" ], raises = PyAthenaDatabaseError )
@@ -1513,7 +1506,7 @@ def swap(token):
1513
1506
id = "pos" ,
1514
1507
marks = pytest .mark .notimpl (
1515
1508
["risingwave" ],
1516
- raises = PsycoPgInternalError ,
1509
+ raises = PsycoPg2InternalError ,
1517
1510
reason = "function make_interval() does not exist" ,
1518
1511
),
1519
1512
),
@@ -1531,7 +1524,7 @@ def swap(token):
1531
1524
),
1532
1525
pytest .mark .notimpl (
1533
1526
["risingwave" ],
1534
- raises = PsycoPgInternalError ,
1527
+ raises = PsycoPg2InternalError ,
1535
1528
reason = "function neg(interval) does not exist" ,
1536
1529
),
1537
1530
],
@@ -1551,7 +1544,7 @@ def swap(token):
1551
1544
),
1552
1545
pytest .mark .notimpl (
1553
1546
["risingwave" ],
1554
- raises = PsycoPgInternalError ,
1547
+ raises = PsycoPg2InternalError ,
1555
1548
reason = "function neg(interval) does not exist" ,
1556
1549
),
1557
1550
],
@@ -1583,7 +1576,7 @@ def test_timestamp_range(con, start, stop, step, freq, tzinfo):
1583
1576
pytest .mark .notyet (["polars" ], raises = PolarsComputeError ),
1584
1577
pytest .mark .notyet (
1585
1578
["risingwave" ],
1586
- raises = PsycoPgInternalError ,
1579
+ raises = PsycoPg2InternalError ,
1587
1580
reason = "function make_interval() does not exist" ,
1588
1581
),
1589
1582
],
@@ -1602,7 +1595,7 @@ def test_timestamp_range(con, start, stop, step, freq, tzinfo):
1602
1595
),
1603
1596
pytest .mark .notyet (
1604
1597
["risingwave" ],
1605
- raises = PsycoPgInternalError ,
1598
+ raises = PsycoPg2InternalError ,
1606
1599
reason = "function neg(interval) does not exist" ,
1607
1600
),
1608
1601
],
@@ -1758,7 +1751,7 @@ def test_table_unnest_with_keep_empty(con):
1758
1751
["datafusion" , "polars" , "flink" ], raises = com .OperationNotDefinedError
1759
1752
)
1760
1753
@pytest .mark .notyet (
1761
- ["risingwave" ], raises = PsycoPgInternalError , reason = "not supported in risingwave"
1754
+ ["risingwave" ], raises = PsycoPg2InternalError , reason = "not supported in risingwave"
1762
1755
)
1763
1756
@pytest .mark .notimpl (
1764
1757
["athena" ],
@@ -1778,10 +1771,10 @@ def test_table_unnest_column_expr(backend):
1778
1771
)
1779
1772
@pytest .mark .notimpl (["trino" ], raises = TrinoUserError )
1780
1773
@pytest .mark .notimpl (["athena" ], raises = PyAthenaOperationalError )
1781
- @pytest .mark .notimpl (["postgres" ], raises = PsycoPgSyntaxError )
1782
- @pytest .mark .notimpl (["risingwave" ], raises = PsycoPgProgrammingError )
1774
+ @pytest .mark .notimpl (["postgres" ], raises = PsycoPg2SyntaxError )
1775
+ @pytest .mark .notimpl (["risingwave" ], raises = PsycoPg2ProgrammingError )
1783
1776
@pytest .mark .notyet (
1784
- ["risingwave" ], raises = PsycoPgInternalError , reason = "not supported in risingwave"
1777
+ ["risingwave" ], raises = PsycoPg2InternalError , reason = "not supported in risingwave"
1785
1778
)
1786
1779
def test_table_unnest_array_of_struct_of_array (con ):
1787
1780
t = ibis .memtable (
@@ -1896,7 +1889,7 @@ def test_array_agg_bool(con, data, agg, baseline_func):
1896
1889
1897
1890
@pytest .mark .notyet (
1898
1891
["postgres" ],
1899
- raises = PsycoPgInvalidTextRepresentation ,
1892
+ raises = PsycoPg2ArraySubscriptError ,
1900
1893
reason = "all dimensions must match in size" ,
1901
1894
)
1902
1895
@pytest .mark .notimpl (["risingwave" , "flink" ], raises = com .OperationNotDefinedError )
0 commit comments