XiaoMi / soar

SQL Optimizer And Rewriter
Apache License 2.0
8.67k stars 1.32k forks source link

select id from t where num/2 = 100 #27

Closed martianzhang closed 5 years ago

martianzhang commented 5 years ago

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a recipe for reproducing the error.

echo "select id from t where num/2 = 100" | soar

  1. What did you expect to see?

suggest use num = 2*100

  1. What did you see instead?

score: 100

  1. What version of are you using (soar -version)?

0.8.0

martianzhang commented 5 years ago

e5a736685b2629ff03c011ed97bc144fbceea8b3 fix this issue