Skip to content

Commit 3912c4e

Browse files
committed
formatting
1 parent 9d9be99 commit 3912c4e

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

WebRequests/pq/Test Case for Web.Contents refresh queries.pq

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,26 @@ let
1414
rawText = Text.FromBinary( response, TextEncoding.Utf8 ),
1515
response = Web.Contents( BaseURL, params ),
1616
Json = Json.Document( response, TextEncoding.Utf8 ),
17-
1817
TreeTble = Json[tree],
1918

20-
#"Converted to Table" = Table.FromList(TreeTble, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
21-
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1",
19+
#"Converted to Table" = Table.FromList(TreeTble,
20+
Splitter.SplitByNothing(), null, null, ExtraValues.Error),
21+
22+
#"Expanded Column1" = Table.ExpandRecordColumn(
23+
#"Converted to Table", "Column1",
2224
{ "path", "mode", "type", "sha", "url", "size" },
2325
{ "path", "mode", "type", "sha", "url", "size" } ),
2426

25-
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Column1",{{"path", type text}, {"mode", type text}, {"type", type text}, {"size", Int64.Type}, {"url", type text}, {"sha", type text}})
27+
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Column1",{
28+
{"path", type text}, {"mode", type text}, {"type", type text},
29+
{"size", Int64.Type}, {"url", type text}, {"sha", type text}} ),
30+
31+
info = [
32+
final = #"Changed Type", // final table to render
33+
Bytes = response,
34+
Meta = Value.Metadata( Bytes ),
35+
Tinfo = Value.Type( Bytes ) // binary
36+
// MeTinfo = Value.Metadata( Tinfo ) // was empty
37+
]
2638
in
27-
#"Changed Type"
39+
info

0 commit comments

Comments
 (0)