Remove redundant casting functions #4333
Labels
affects: architecture
Improvements or additions to architecture
affects: technical debt
Improves the state of the codebase
help wanted
Community contributors can implement this
ready
Ready for implementation
type: maintenance
work: backend
Related to Python, Django, and simple SQL
Milestone
Description
We have a lot of casting functions in
45_msar_type_casting.sql
which are redundant.E.g. Casting to uuid doesn't require 3 function with different parameter types overloaded for each string like type. A casting function with
text
param can handle all string types includingtext
,character
andvarchar
. This might also be true for other typesnumeric
but needs to be thoroughly tested.Expected behavior
We should ideally remove all of string like varients of casting functions and only keep their
text
version. If there is a possibility to do the same for non string like types as well we should consider that.The text was updated successfully, but these errors were encountered: