Closed wenleix closed 4 years ago
The general problem of worker doing additional optimization that EXPLAIN cannot show is a valid issue.
The issue here is that RowExpression optimization happens on workers. As a result, explain cannot show them.
This issue has been automatically marked as stale because it has not had any activity in the last 2 years. If you feel that this issue is important, just comment and the stale tag will be removed; otherwise it will be closed in 7 days. This is an attempt to ensure that our open issues remain valuable and relevant so that we can keep track of what needs to be done and prioritize the right things.
We will optimize
JSON_PARSE(col) AS ARRAY
to use$internal$json_string_to_array_cast
(done in https://github.com/prestodb/presto/issues/8286)However, this is not reelected in the plan:
The execution shows the optimization is working correctly (instead of throwing exception at json_parse):