Merge pull request #13 from riv/master
Changed GetString back to GetInteger for EventId
This commit is contained in:
Коммит
5120996a6c
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче