tispark icon indicating copy to clipboard operation
tispark copied to clipboard

[BUG] Determine whether it is an `IndexReader` or an `IndexLookUp` error

Open qidi1 opened this issue 3 years ago • 0 comments

Describe the bug

To determine whether it is an IndexReader or an IndexLookUp, the columns in the push-down should be used, not the columns in the predicate and projection. What did you do

  spark.sql("select count(a) from t1").explain()

What do you expect When we judge whether this read is IndexReader use the column a.

What happens instead

When we judge whether this read is IndexReader, the column is empty. image

Spark and TiSpark version info

TiSpark: master

qidi1 avatar Jul 25 '22 02:07 qidi1