Merge pull request #13 from riv/master

Changed GetString back to GetInteger for EventId
This commit is contained in:
Kevin Lewis 2016-08-02 16:18:10 -07:00 коммит произвёл GitHub
Родитель 23ab97538f e24e18daa5
Коммит 5120996a6c
8 изменённых файлов: 8 добавлений и 8 удалений

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

@ -270,7 +270,7 @@ WHERE RowNumber == 1;
// 60
@NewRawEvent =
SELECT GHInsights.USql.Utility.GetString(Data, "id") AS EventId
SELECT GHInsights.USql.Utility.GetInteger(Data, "id") AS EventId
,Data
,GHInsights.USql.Utility.GetString(Data, "_id") AS EtlSourceId
,DateTime.Parse(IngestDate, null, System.Globalization.DateTimeStyles.AssumeUniversal).ToUniversalTime() AS EtlIngestDate

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

@ -3,7 +3,7 @@ REFERENCE ASSEMBLY [GHInsights.USql];
REFERENCE ASSEMBLY [Newtonsoft.Json];
@Event =
SELECT GHInsights.USql.Utility.GetString(Data, "id") AS EventId
SELECT GHInsights.USql.Utility.GetInteger(Data, "id") AS EventId
,GHInsights.USql.Utility.GetInteger(Data, "actor.id") AS ActorId
,GHInsights.USql.Utility.GetString(Data, "actor.login") AS ActorLogin
,GHInsights.USql.Utility.GetDateTime(Data, "created_at") AS CreatedAt

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

@ -3,7 +3,7 @@ REFERENCE ASSEMBLY [GHInsights.USql];
REFERENCE ASSEMBLY [Newtonsoft.Json];
@RawEvent =
SELECT GHInsights.USql.Utility.GetString(Data, "id") AS EventId
SELECT GHInsights.USql.Utility.GetInteger(Data, "id") AS EventId
,Data
,GHInsights.USql.Utility.GetString(Data, "_id") AS EtlSourceId
,DateTime.Parse(IngestDate, null, System.Globalization.DateTimeStyles.AssumeUniversal).ToUniversalTime() AS EtlIngestDate

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

@ -4,7 +4,7 @@ REFERENCE ASSEMBLY [Newtonsoft.Json];
@RawEventPayloadIssueLabel =
SELECT GHInsights.USql.Utility.GetString(Data, "id") AS EventId
SELECT GHInsights.USql.Utility.GetInteger(Data, "id") AS EventId
,Data
,GHInsights.USql.Utility.GetString(Data, "_id") AS EtlSourceId
,DateTime.Parse(IngestDate, null, System.Globalization.DateTimeStyles.AssumeUniversal).ToUniversalTime() AS EtlIngestDate

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

@ -3,7 +3,7 @@ REFERENCE ASSEMBLY [GHInsights.USql];
REFERENCE ASSEMBLY [Newtonsoft.Json];
@RawEventPayloadPage =
SELECT GHInsights.USql.Utility.GetString(Data, "id") AS EventId
SELECT GHInsights.USql.Utility.GetInteger(Data, "id") AS EventId
,Data
,GHInsights.USql.Utility.GetString(Data, "_id") AS EtlSourceId
,DateTime.Parse(IngestDate, null, System.Globalization.DateTimeStyles.AssumeUniversal).ToUniversalTime() AS EtlIngestDate

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

@ -3,7 +3,7 @@ REFERENCE ASSEMBLY [GHInsights.USql];
REFERENCE ASSEMBLY [Newtonsoft.Json];
@Event =
SELECT GHInsights.USql.Utility.GetString(Data, "id") AS EventId
SELECT GHInsights.USql.Utility.GetInteger(Data, "id") AS EventId
,GHInsights.USql.Utility.GetInteger(Data, "payload.pull_request.id") AS EventPayloadPullRequestId
,GHInsights.USql.Utility.GetInteger(Data, "payload.pull_request.additions") AS Additions
,GHInsights.USql.Utility.GetInteger(Data, "payload.pull_request.assignee.id") AS AssigneeId

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

@ -3,7 +3,7 @@ REFERENCE ASSEMBLY [GHInsights.USql];
REFERENCE ASSEMBLY [Newtonsoft.Json];
@RawEventPayloadReleaseAsset =
SELECT GHInsights.USql.Utility.GetString(Data, "id") AS EventId
SELECT GHInsights.USql.Utility.GetInteger(Data, "id") AS EventId
,Data
,GHInsights.USql.Utility.GetString(Data, "_id") AS EtlSourceId
,DateTime.Parse(IngestDate, null, System.Globalization.DateTimeStyles.AssumeUniversal).ToUniversalTime() AS EtlIngestDate

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

@ -31,4 +31,4 @@ SELECT EventName
FROM @ExtractedData
WHERE IngestDate == @IngestDate;
END;
END;