Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
None
Description
We do all validation by simply calling AbstractType.getString(). This generates garbage needlessly and has a lot of overhead.
A simpler interface would be to make AbstractType.validate abstract and have the child classes implement it in an intelligent and efficient way.
EDIT: Somewhat related: It looks like we're attempting to validate column names in ThriftValidation.validateColumns(). Is this intentional? Nevermind that part. I get it.