Skip to content
This repository was archived by the owner on Dec 28, 2017. It is now read-only.
This repository was archived by the owner on Dec 28, 2017. It is now read-only.

Column pruning not handled properly #163

@Novemser

Description

@Novemser

SQL:

select id_dt from full_data_type_table where id_dt not in (select id_dt from full_data_type_table  where tp_decimal <> 1E10)

Plan:

== Physical Plan ==
*Project [id_dt#138L]
+- BroadcastNestedLoopJoin BuildRight, LeftAnti, ((id_dt#138L = id_dt#138L#258L) || isnull((id_dt#138L = id_dt#138L#258L)))
   :- TiDB CoprocessorRDD{[table: full_data_type_table] , Ranges: Start:[-9223372036854775808], End: [9223372036854775807], Columns: [id_dt], [tp_varchar], [tp_datetime], [tp_blob], [tp_binary], [tp_date], [tp_timestamp], [tp_year], [tp_bigint], [tp_decimal], [tp_double], [tp_float], [tp_int], [tp_mediumint], [tp_real], [tp_smallint], [tp_tinyint], [tp_char], [tp_nvarchar], [tp_longtext], [tp_mediumtext], [tp_text], [tp_tinytext], [tp_bit], [tp_time], [tp_enum], [tp_set]}
   +- BroadcastExchange IdentityBroadcastMode
      +- *Project [id_dt#138L AS id_dt#138L#258L]
         +- TiDB CoprocessorRDD{[table: full_data_type_table] , Ranges: Start:[-9223372036854775808], End: [9223372036854775807], Columns: [id_dt], [tp_decimal], Aggregates: Not(IsNull([tp_decimal])), <>([tp_decimal], 10000000000)}

Seem we didn't properly prune the plan and pushed down too many things.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions