-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(warehouse): id resolution index issue #2676
Conversation
Codecov ReportBase: 45.43% // Head: 45.43% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## release/1.3.x #2676 +/- ##
==============================================
Coverage 45.43% 45.43%
==============================================
Files 287 287
Lines 47777 47790 +13
==============================================
+ Hits 21707 21715 +8
- Misses 24691 24698 +7
+ Partials 1379 1377 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
…solution tables doesn't contains it.
@@ -396,17 +396,31 @@ func (bq *HandleT) loadTable(tableName string, _, getLoadFileLocFromTableUploads | |||
primaryJoinClause := strings.Join(primaryKeyList, " AND ") | |||
bqTable := func(name string) string { return fmt.Sprintf("`%s`.`%s`", bq.namespace, name) } | |||
|
|||
var orderByClause string | |||
if _, ok := tableColMap["received_at"]; ok { | |||
orderByClause = "ORDER BY received_at DESC" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@achettyiitr why it was a problem to always do ORDER BY received_at DESC
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When enabling ID resolution, we create 2 tables.
- rudder_identity_mappings (merge_property_type, merge_property_value)
- rudder_identity_merge_rules (merge_property_1_type, merge_property_1_value, merge_property_2_type, merge_property_2_value)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these don't contain received_at, it was failing there.
Description
Notion Ticket
https://www.notion.so/rudderstacks/ID-Resolution-fix-37b86edc58424110b6562afa4999176f
Security