Open neykov opened 1 week ago
I can replicate this issue and have asked internally about it. With Oracle Database 23c you get more information in the error message:
ORA-00979: "$vm_col_1": must appear in the GROUP BY clause or be used in an aggregate function
Help: https://docs.oracle.com/error-help/db/ora-00979/
Since $vm_col_1
doesn't appear in the statement something must be going haywire internally. Hopefully we can figure out the source of the issue and get this repaired. Thanks for reporting it!
Error.
I am seeing the error "ORA-00979: not a GROUP BY expression" when in thin mode, but the same program works in Thick mode. Seems to be triggered by the interaction of 1) Thin mode 2) CASE WHEN in GROUP BY 3) Bind variables 4) COUNT(DISTINCT).
To reproduce save the script in (7) to the file query.py and run:
No. Thin mode. The error does not trigger in Thick mode.