Azure Stream Analytics导出所有文件,如下所示:
2018/12/27/02/myoutputfile.csv
year/month/day/hour/filename
let
src = DataLake.Contents("adl://jameslake.azuredatalakestore.net", null),
#"sample" = src{[Name="sample"]}[Content],
#"2018" = #"sample"{[Name="2018"]}[Content],
#"11" = #"2018"{[Name="11"]}[Content],
#"30" = #"11"{[Name="30"]}[Content],
#"randomlygeneratedfile csv" = #"30"{[Name="randomlygeneratedfile.csv"]}[Content],
#"インポートされた CSV" = Csv.Document(#"randomlygeneratedfile csv",[Delimiter="#(tab)", Columns=8, Encoding=1252, QuoteStyle=QuoteStyle.None]),
csvHeader = Table.PromoteHeaders(#"インポートされた CSV", [PromoteAllScalars=true]),
transformation = Table.TransformColumnTypes(csvHeader,{{"rolename", type text}, {"roleinstance", type text}, {"clientid", type text}, {"userid", type text}, {"version", type text}, {"eventtime", type datetime}, {"name", type text}, {"count", Int64.Type}})
in
transformation
是否可以通过通配符搜索(例如2018/12/*/*.csv
)访问目录下的所有文件?