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 insert transform only keys in first row #138

Merged

Conversation

qnkhuat
Copy link
Contributor

@qnkhuat qnkhuat commented Mar 27, 2023

Fixes #130

@qnkhuat qnkhuat requested a review from camsaul as a code owner March 27, 2023 13:53
v)))))
row-xform (apply comp row-xforms)]
(map row-xform rows)))
(let [x-forms (for [[k transform] k->transform]
Copy link
Contributor Author

@qnkhuat qnkhuat Mar 27, 2023

Choose a reason for hiding this comment

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

should we do the same for transform-update-changes? instead of loop through the row map and checking if k->transform exists a transformation function for the key, we'll build out an xform from k->transform.

a plus point with that approach is we don't have to do into {}, which might gives a better performance ?

Copy link
Owner

Choose a reason for hiding this comment

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

yeah, I think that makes sense

Copy link
Owner

@camsaul camsaul left a comment

Choose a reason for hiding this comment

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

Cool, thanks for this

@camsaul camsaul merged commit e254745 into camsaul:master Mar 27, 2023
@camsaul
Copy link
Owner

camsaul commented Mar 27, 2023

This will go live in 1.0.524

@qnkhuat qnkhuat deleted the fix-insert-transform-only-keys-in-first-row branch March 28, 2023 14:26
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.

Transforms do not transform any values in insert! that are not present in the first row
2 participants