You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that sqlparse.format considers words like date and segment as SQL identifiers, and so when these words are used as identifiers with keyword_case=True, sqlparse will automatically uppercase them.
It would be ideal if keywords would be only treated as keywords when they are used as keywords instead of naively uppercasing segment anywhere it is used. This can cause confusion to users when their column names are uppercased unexpectedly.