1616// under the License.
1717
1818use datafusion:: {
19- catalog:: CatalogProviderList ,
19+ catalog:: { CatalogProviderList , TableFunctionImpl } ,
2020 config:: { CatalogOptions , ConfigOptions } ,
21- datasource:: { function :: TableFunctionImpl , provider_as_source, TableProvider , ViewTable } ,
21+ datasource:: { provider_as_source, TableProvider , ViewTable } ,
2222 prelude:: { flatten, get_field, make_array} ,
2323} ;
2424use datafusion_common:: {
@@ -1549,9 +1549,9 @@ mod test {
15491549 name : "window & unnest" ,
15501550 query_to_analyze : "
15511551 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,
15551555 arr
15561556 FROM (
15571557 SELECT
@@ -1568,14 +1568,14 @@ mod test {
15681568 )" ,
15691569 projection : & [ "year" , "month" , "day" ] ,
15701570 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+ "+--------------+--------------------------------------------------------------------------------------------------------------------------------------- +" ,
15791579 ] ,
15801580 expected_output : vec ! [
15811581 "+------+-------+-----+" ,
0 commit comments