Closed dragove closed 3 months ago
While we cannot do it on read atm, we do have the DataFrame<T>.renameToCamelCase()
function. This will also convert snake case to camelCase automatically
Thanks, this worked for me.
Please close this issue if this is one is not planed since it's not important. Or remain this issue if it's worth to implement. Thanks again.
Most of the developers use sneak case in database systems but use camel case in java or kotlin source code.
I hope if there is a convenient way to do auto cast when read data from database.
e.g. if a table has these properties
after using
val df = DataFrame.readSqlTable(config, "demo", 10, caseConvertor=Convertors.sneakToCamelConvertor)
we can access property with camel casedf.firstName[0]