Problem Reported : When user is trying executing a specific piece of SQL an Internal Error was generated.
SQL:
SELECT 1982 test_col
FROM /shared/shared/Tibco_POC/L1_Logical/UseCase2/vPopYear2_2 "vPopYear2_2"
WHERE CASE WHEN 'Y' = 'Y' THEN 1 ELSE 2 END = 1
HAVING COUNT(1) > 0
Error:
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(Unknown Source)
As a workaround, set the configuration : "Disable Union Pre-Aggregation" to true and execute the query.