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
Running the following query returns an error in gen4.
select table_name from (select*from information_schema.`tables`where table_schema = database()) as _subquery where_subquery.table_type='a'and_subquery.table_name='a'
The plan produced from Gen4 is
{
"QueryType": "SELECT",
"Original": "select table_name from (select * from information_schema.`tables` where table_schema = database()) as _subquery where _subquery.table_type = 'a' and _subquery.table_name = 'a'",
"Instructions": {
"OperatorType": "Route",
"Variant": "SelectDBA",
"Keyspace": {
"Name": "main",
"Sharded": false
},
"FieldQuery": "select table_name from (select * from information_schema.`tables` where 1 != 1) as _subquery where 1 != 1",
"Query": "select table_name from (select * from information_schema.`tables` where table_schema = database() and _subquery.table_type = 'a' and _subquery.table_name = :_subquery_table_name) as _subquery",
"SysTableTableName": "[_subquery_table_name:VARBINARY(\"a\")]",
"Table": "information_schema.`tables`"
}
}
The alias of the derived table is not removed while pushing the predicates inside.
Reproduction Steps
Steps to reproduce this issue:
Copy the query to onecase.txt and run the plan tests.
Binary version
main
The text was updated successfully, but these errors were encountered:
Overview of the Issue
Running the following query returns an error in gen4.
The plan produced from Gen4 is
The alias of the derived table is not removed while pushing the predicates inside.
Reproduction Steps
Steps to reproduce this issue:
Binary version
main
The text was updated successfully, but these errors were encountered: