-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix BigQuery query template to retrieve training data (#182)
* Fix BigQuery query template to retrieve training data * Update expected value BigQuery template test * Use FeatureInfo to create Features in BigQueryDatasetTemplater so it's neater
- Loading branch information
1 parent
d5c3809
commit aeb12cd
Showing
5 changed files
with
39 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
SELECT | ||
project.dataset.myentity.id, | ||
project.dataset.myentity.event_timestamp , | ||
myentity_feature1, | ||
myentity_feature2, | ||
myentity_feature3 | ||
id, | ||
event_timestamp, | ||
feature1, | ||
feature2, | ||
feature3 | ||
FROM | ||
project.dataset.myentity | ||
`project.dataset.myentity` | ||
WHERE | ||
event_timestamp >= TIMESTAMP("2018-01-02") | ||
AND event_timestamp <= TIMESTAMP(DATETIME_ADD("2018-01-30", INTERVAL 1 DAY)) LIMIT 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
SELECT | ||
project.dataset.myentity.id, | ||
project.dataset.myentity.event_timestamp , | ||
myentity_feature1 | ||
id, | ||
event_timestamp, | ||
feature1 | ||
FROM | ||
project.dataset.myentity | ||
`project.dataset.myentity` | ||
WHERE | ||
event_timestamp >= TIMESTAMP("2018-01-02") | ||
AND event_timestamp <= TIMESTAMP(DATETIME_ADD("2018-01-30", INTERVAL 1 DAY)) LIMIT 1000 |