Skip to content

Commit 0bb02dc

Browse files
committed
[test](regression) Expect disabled LOCAL metadata glob expansion
### What problem does this PR solve? Issue Number: N/A Related PR: #69591 Problem Summary: Parquet metadata local wildcard expansion delegates to the disabled LOCAL TVF constructor. Expect the admission error for both the former successful glob and the no-match glob. Preserve all literal-path and remote metadata checks. ### Release note None ### Check List (For Author) - Test: Groovy 4.0.19 syntax parsing and whitespace checks passed; all other suite blocks verified byte-for-byte unchanged. Runtime regression not executed locally. No Java source changed. - Behavior changed: No. Test expectations follow the existing unconditional rejection. - Does this need documentation: No.
1 parent 531cd94 commit 0bb02dc

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

‎regression-test/suites/external_table_p0/tvf/test_parquet_meta_tvf.groovy‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,16 @@ suite("test_parquet_meta_tvf", "p0,external,external_docker,tvf") {
267267
);
268268
"""
269269

270-
// file metadata (local glob)
271-
order_qt_parquet_file_metadata_local_glob """
272-
select count(*) from parquet_meta(
273-
"file_path" = "${outFilePath}/*meta.parquet",
274-
"mode" = "parquet_file_metadata"
275-
);
276-
"""
270+
// Local wildcard expansion delegates to LOCAL TVF, which is disabled.
271+
test {
272+
sql """
273+
select count(*) from parquet_meta(
274+
"file_path" = "${outFilePath}/*meta.parquet",
275+
"mode" = "parquet_file_metadata"
276+
);
277+
"""
278+
exception "LOCAL TVF is disabled"
279+
}
277280

278281
order_qt_parquet_kv_metadata_local """
279282
select * from parquet_meta(
@@ -520,6 +523,6 @@ suite("test_parquet_meta_tvf", "p0,external,external_docker,tvf") {
520523
"mode" = "parquet_metadata"
521524
);
522525
"""
523-
exception "failed to glob"
526+
exception "LOCAL TVF is disabled"
524527
}
525528
}

0 commit comments

Comments
 (0)