Closed seruman closed 5 months ago
Looks good to me!
And thank you for splitting each transformation into its own separate PR, it makes it a lot easier for me to review. Plus, because the changelog is generated automatically from merged commits, it ends up being much cleaner.
Adds transformation for
TRY_TO_DECIMAL
and friends, basically the same asto_decimal
except returned node isTryCast
instead ofCast
.Moved the actual node creation to another function to reuse it in both
*to_decimal
transformation, but not 100% sure with what I end up with.Keeping the same logic in both functions makes it more explicit and more isolated but prone to failures in a case that is not covered by tests, would like to hear what you think about it.