16
16
// under the License.
17
17
18
18
use datafusion:: {
19
- catalog:: CatalogProviderList ,
19
+ catalog:: { CatalogProviderList , TableFunctionImpl } ,
20
20
config:: { CatalogOptions , ConfigOptions } ,
21
- datasource:: { function :: TableFunctionImpl , provider_as_source, TableProvider , ViewTable } ,
21
+ datasource:: { provider_as_source, TableProvider , ViewTable } ,
22
22
prelude:: { flatten, get_field, make_array} ,
23
23
} ;
24
24
use datafusion_common:: {
@@ -1549,9 +1549,9 @@ mod test {
1549
1549
name : "window & unnest" ,
1550
1550
query_to_analyze : "
1551
1551
SELECT
1552
- \" unnest_placeholder (date).year\" AS year,
1553
- \" unnest_placeholder (date).month\" AS month,
1554
- \" unnest_placeholder (date).day\" AS day,
1552
+ \" __unnest_placeholder (date).year\" AS year,
1553
+ \" __unnest_placeholder (date).month\" AS month,
1554
+ \" __unnest_placeholder (date).day\" AS day,
1555
1555
arr
1556
1556
FROM (
1557
1557
SELECT
@@ -1568,14 +1568,14 @@ mod test {
1568
1568
)" ,
1569
1569
projection : & [ "year" , "month" , "day" ] ,
1570
1570
expected_plan : vec ! [
1571
- "+--------------+---------------------------------------------------------------------------------------------------------------------------------+" ,
1572
- "| plan_type | plan |" ,
1573
- "+--------------+---------------------------------------------------------------------------------------------------------------------------------+" ,
1574
- "| logical_plan | Projection: unnest_placeholder (date).year AS year, unnest_placeholder (date).month AS month, unnest_placeholder (date).day AS day |" ,
1575
- "| | Unnest: lists[] structs[unnest_placeholder (date)] |" ,
1576
- "| | Projection: named_struct(Utf8(\" year\" ), t2.year, Utf8(\" month\" ), t2.month, Utf8(\" day\" ), t2.day) AS unnest_placeholder (date) |" ,
1577
- "| | TableScan: t2 projection=[year, month, day] |" ,
1578
- "+--------------+---------------------------------------------------------------------------------------------------------------------------------+" ,
1571
+ "+--------------+--------------------------------------------------------------------------------------------------------------------------------------- +" ,
1572
+ "| plan_type | plan |" ,
1573
+ "+--------------+--------------------------------------------------------------------------------------------------------------------------------------- +" ,
1574
+ "| logical_plan | Projection: __unnest_placeholder (date).year AS year, __unnest_placeholder (date).month AS month, __unnest_placeholder (date).day AS day |" ,
1575
+ "| | Unnest: lists[] structs[__unnest_placeholder (date)] |" ,
1576
+ "| | Projection: named_struct(Utf8(\" year\" ), t2.year, Utf8(\" month\" ), t2.month, Utf8(\" day\" ), t2.day) AS __unnest_placeholder (date) |" ,
1577
+ "| | TableScan: t2 projection=[year, month, day] |" ,
1578
+ "+--------------+--------------------------------------------------------------------------------------------------------------------------------------- +" ,
1579
1579
] ,
1580
1580
expected_output : vec ! [
1581
1581
"+------+-------+-----+" ,
0 commit comments