For some reason str_to_date() function returns a BINARY column instead of DATETIME. See screenshot below
If I explicitly convert the function’s result to DATETIME - it correctly returns DATETIME. See screenshot below
Could anyone please explain this behaviour, maybe I’m missing something?