Reusing Entities across FeatureViews with different source data column names #4840
Unanswered
martinpella
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want to define an Entity that can be reused across multiple FeatureViews. Here is an example:
The challenge arises because not all source tables have a uniform column name for
customer_id
; for instance, some tables might useuser_id
,customer
, etc.Consider a scenario where we want to utilize the above-defined entity for a FeatureView with a BigQuery table that uses
user_id
as a column name instead ofcustomer_id
:The specific issue occurs in the subpart of the generated query here, where the query tries to select
customer_id
rather thanuser_id
leading to the following error:google.api_core.exceptions.BadRequest: 400 Query error: Unrecognized name: customer_id
I've also explored the option of Entity aliasing:
Although this approach results in a different subquery, the issue persists where the query incorrectly attempts to select customer_id from the table:
I experimented with reversing the key/value pair in the join map, but unfortunately, the problem still remains.
Any suggestions or insights on how to address this mismatch would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions