Skip to content

Commit 9511204

Browse files
committed
test: make typed SharePoint read test resilient to extra list rows
1 parent ad94a87 commit 9511204

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/sql/graph_sharepoint_typed_read_integration.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ SELECT typeof(Title) FROM graph_sharepoint_list_read(
5757
----
5858
VARCHAR
5959

60-
# Rows with non-null values: Foo=1, Bar=2, Baz=3
60+
# Seed rows Foo=1, Bar=2, Baz=3 must be present (list may contain additional rows)
6161
query II
6262
SELECT Title, Number FROM graph_sharepoint_list_read(
6363
'${ERPL_MS_SHAREPOINT_TESTLIST_SITE_ID}',
6464
'${ERPL_MS_SHAREPOINT_TESTLIST_LIST_ID}',
6565
secret := 'ms_sptype_test'
66-
) WHERE Title IS NOT NULL ORDER BY Number;
66+
) WHERE Title IS NOT NULL AND Number <= 3 ORDER BY Number;
6767
----
6868
Foo 1.0
6969
Bar 2.0
@@ -90,10 +90,10 @@ WHERE table_catalog = 'sptypetest' AND table_name = 'TestList' AND column_name =
9090
----
9191
TIMESTAMP
9292

93-
# SELECT from catalog returns typed row data
93+
# SELECT from catalog returns typed row data (seed rows only; list may have more)
9494
query II
9595
SELECT Title, Number FROM sptypetest.TestList
96-
WHERE Title IS NOT NULL ORDER BY Number;
96+
WHERE Title IS NOT NULL AND Number <= 3 ORDER BY Number;
9797
----
9898
Foo 1.0
9999
Bar 2.0

0 commit comments

Comments
 (0)