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
Best exemplified by an example: SELECT CHAR(emp_no % 10000) FROM "test_emp";
The result will have the column name CHAR(((emp_no{f}#14) % 10000)). It should be CHAR((emp_no % 10000)).
The text was updated successfully, but these errors were encountered:
Previously, When an arithmetic function is applied on a
table column in the `SELECT` clause the name of the result
column name contained weird characters used internally when
processing the SQL statement. E.g.:
SELECT CHAR(emp_no % 10000) FROM "test_emp"
returned:
CHAR((emp_no{f}elastic#14) % 10000))
as the column name instead of:
CHAR((emp_no) % 10000))
Fixes: elastic#31869
Previously, when an arithmetic function got applied on a
table column in the `SELECT` clause, the name of the result
column contained weird characters used internally when
processing the SQL statement e.g.:
SELECT CHAR(emp_no % 10000) FROM "test_emp"
returned:
CHAR((emp_no{f}#14) % 10000))
as the column name instead of:
CHAR((emp_no) % 10000))
Also, fix an issue that causes a ClassCastException to be thrown
when using functions where both arguments are literals.
Closes#31869Closes#33461
Previously, when an arithmetic function got applied on a
table column in the `SELECT` clause, the name of the result
column contained weird characters used internally when
processing the SQL statement e.g.:
SELECT CHAR(emp_no % 10000) FROM "test_emp"
returned:
CHAR((emp_no{f}#14) % 10000))
as the column name instead of:
CHAR((emp_no) % 10000))
Also, fix an issue that causes a ClassCastException to be thrown
when using functions where both arguments are literals.
Closes#31869Closes#33461
Best exemplified by an example:
SELECT CHAR(emp_no % 10000) FROM "test_emp"
;The result will have the column name
CHAR(((emp_no{f}#14) % 10000))
. It should beCHAR((emp_no % 10000))
.The text was updated successfully, but these errors were encountered: