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

Chore: Cosmetic changes to how we resolve session properties for a model #2603

Merged

Conversation

izeigerman
Copy link
Member

No description provided.

@izeigerman izeigerman requested a review from a team May 13, 2024 19:53
) -> t.Optional[exp.Expression]:
if isinstance(provided, dict):
session_properties = {k: exp.Literal.string(k).eq(v) for k, v in provided.items()}
elif provided:
session_properties = {expr.this.name: expr for expr in provided}
Copy link
Contributor

Choose a reason for hiding this comment

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

what is expr? what are you expecting it to be such that expr.this.name works

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a tuple of properties.

Copy link
Member Author

Choose a reason for hiding this comment

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

so we expect this to be EQ with the left operand being a string literal or an identifier

Copy link
Contributor

Choose a reason for hiding this comment

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

sg

@izeigerman izeigerman force-pushed the chore-cosmetic-changes-to-resolve-session-properties branch from 56de418 to 6e996fd Compare May 13, 2024 20:08
@izeigerman izeigerman merged commit 9e7d4ca into main May 13, 2024
15 checks passed
@izeigerman izeigerman deleted the chore-cosmetic-changes-to-resolve-session-properties branch May 13, 2024 22:06
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.

None yet

3 participants