Returns true if codegen should be enabled for this fragment. Codegen is enabled if all the following conditions hold: 1. it's enabled by query option 2. it's not disabled by internal hints or there are expressions in the fragment which cannot be interpreted.
| 160 | /// 2. it's not disabled by internal hints or there are expressions in the fragment |
| 161 | /// which cannot be interpreted. |
| 162 | inline bool ShouldCodegen() const { |
| 163 | return !CodegenDisabledByQueryOption() && !CodegenDisabledByHint(); |
| 164 | } |
| 165 | |
| 166 | /// Whether all expressions are interpretable or codegen is necessary because an |
| 167 | /// expression cannot be interpreted. |