Skip to content
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

Feature/hgi 7305 - Flatten Customer Hierarchy Stream #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

LiorB-D
Copy link

@LiorB-D LiorB-D commented Feb 28, 2025

No description provided.

@LiorB-D LiorB-D requested a review from hsyyid February 28, 2025 19:27
th.Property(
"customerClient",
th.ObjectType(
th.Property("customer_id", th.StringType),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the indentation here?

@@ -87,15 +87,12 @@ def gaql(self):

records_jsonpath = "$.results[*]"
name = "stream_customer_hierarchy"
primary_keys = ["customerClient__id"]
primary_keys = ["id"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be id or customer_id? They're almost the same thing right

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm keeping with how it was before where the unsanitized id is the pk, and the sanitized id (customer_id) is the partition key.

I'm pretty sure they are both unique, but I think it's generally safer to use the primary key that google gives us (Which is not sanitized)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants