Open 0-issue opened 1 year ago
This is because cockroach's parser converts these to a function call node instead of leaving them in their native form with an exact representation. Ideally it would do what you describe. Cockroach could be changed so that the parser can fully roundtrip these, and its planner is the thing that converts them some lower level function call or whatever. I no longer work on the cockroach code (where the actual AST -> pretty printing logic occurs), so I'm not able to make this change.
Input:
output (
cat file.sql | ./main --align --casemode lower
):In the following excerpt, every other line has been converted to a function. Why, does it make more sense? If not, is there a way to disable that?