This commit is contained in:
Shuo Cheng 2016-08-02 16:16:39 -07:00 коммит произвёл GitHub
Родитель 2c31e3eb8a
Коммит e24e18daa5
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -17,7 +17,7 @@ DECLARE @IngestDatePartition = @IngestDate.ToString("yyyy-MM-dd");
EXTRACT EventName string
,IngestDate DateTime
,Data SqlMap<string, byte[]>
FROM "wasb://raw@ghinsightsms.blob.core.windows.net/{EventName:*}/v1/{IngestDate:yyyy}/{IngestDate:MM}/{EventName:*}_{IngestDate:yyyy}_{IngestDate:MM}_{IngestDate:dd}.json.gz"
FROM "wasb://raw@ghinsightspublic.blob.core.windows.net/{EventName:*}/v1/{IngestDate:yyyy}/{IngestDate:MM}/{EventName:*}_{IngestDate:yyyy}_{IngestDate:MM}_{IngestDate:dd}.json.gz"
USING GHInsights.USql.Extractors.FlatJson(outputColumnName: "Data");
ALTER TABLE Staging.GHTorrent.GitHubData DROP IF EXISTS PARTITION (@IngestDatePartition);
@ -31,4 +31,4 @@ SELECT EventName
FROM @ExtractedData
WHERE IngestDate == @IngestDate;
END;
END;