Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. DECLARE @dataVersion string = "mag-2019-03-22";
  2. DECLARE @blobAccount string = "<PLACEHOLDER>";
  3. DECLARE @uriPrefix string = "wasb://" + @dataVersion + "@" + @blobAccount + "/";
  4. DECLARE @typeCounts string = "/Output/TypeCounts.tsv";
  5.  
  6. @Papers = Papers(@uriPrefix);
  7.  
  8. @Types = SELECT
  9. DocType, COUNT(1) AS cnt
  10. FROM
  11. @Papers
  12. GROUP BY
  13. DocType;
  14.  
  15. OUTPUT @Types TO @typeCounts
  16. USING Outputters.Tsv(quoting : false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement