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

Fix #1064: handle firstseen as a reserved word #1065

Merged
merged 4 commits into from
Jan 4, 2023
Merged

Conversation

achantavy
Copy link
Contributor

Fixes #1064: Prevents firstseen from being defined as part of CartographyNodeProperties and CartographyRelProperties objects because the querybuilder automatically sets it. Adds tests for EMR.

I couldn't add a unit test for the __post_init__ because if I create a CartographyNodeProperties with a firstseen field, the __post__init__ gets run when the dataclass object is defined, which causes the TypeError to throw before any tests are able to run.

@ramonpetgrave64
Copy link
Collaborator

Should we do something similar for lastupdated?

@achantavy
Copy link
Contributor Author

Should we do something similar for lastupdated?

No, because lastupdated is part of the SET clause and not the ON CREATE SET clause, so it should be in the propertyschema.

@achantavy achantavy merged commit 168dfea into master Jan 4, 2023
@achantavy achantavy deleted the fixfirstseen branch January 4, 2023 17:03
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.

EMRCluster node don't have firstseen property
2 participants