Inconsistent Results with JSON_UNQUOTE Between Table and View
General
Escalation
General
Escalation
Description
Attachments
1
Activity
Show:

Aaditya Dubey January 31, 2025 at 1:01 PM
Hi
Thank you for the report.
It is verified as described.
Details
Details
Assignee
Unassigned
UnassignedReporter

Priority
Labels
Needs QA
Yes
Affects versions
Upstream Bug URL
Smart Checklist
Open Smart Checklist
Smart Checklist

Open Smart Checklist
Created January 14, 2025 at 2:00 AM
Updated January 31, 2025 at 1:02 PM
Description:
When querying data involving JSON_UNQUOTE in a SELECT statement, there is inconsistent behavior between queries executed on a table created via CREATE TABLE AS SELECT and a view created using the same query logic. Specifically, the number of rows returned differs when applying the same WHERE clause on the table and view.
How to repeat:
1.Create t0 and insert data:
2.Create t1 as a table and query it:
3.Create t1 as a view instead and query it:
Expected Result:
The results of the queries on t1 (table) and t1 (view) should be identical, as they are based on the same data and query logic.
Actual Result:
The query on t1 (table) returns 2 rows.
The query on t1 (view) returns 3 rows.