Commit c51d864
feat: Allow propagating constant folding exceptions (facebookincubator#13680)
Summary:
Pull Request resolved: facebookincubator#13680
Enhance velox::exec::tryEvaluateConstantExpression to allow for propagating exceptions occurred during evaluation of a constant expression. Specifically, constant folding 5 / 0 fails with "division by zero". Before this change, the error would be swallowed. After this change the error would be propagated unless optional parameter suppressEvaluationFailures is set to true.
Remove velox::exec::evaluateConstantExpression as it is no longer used / needed.
Reviewed By: bikramSingh91
Differential Revision: D76152526
fbshipit-source-id: 190abf1c75f8034e58c70fa665abaaca4ba5a1891 parent 0436d0c commit c51d864
3 files changed
+40
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1683 | 1683 | | |
1684 | 1684 | | |
1685 | 1685 | | |
1686 | | - | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
1690 | | - | |
| 1686 | + | |
1691 | 1687 | | |
1692 | 1688 | | |
1693 | 1689 | | |
| |||
2041 | 2037 | | |
2042 | 2038 | | |
2043 | 2039 | | |
2044 | | - | |
2045 | | - | |
2046 | | - | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
2052 | | - | |
2053 | 2040 | | |
2054 | 2041 | | |
2055 | | - | |
2056 | | - | |
2057 | | - | |
| 2042 | + | |
| 2043 | + | |
2058 | 2044 | | |
2059 | 2045 | | |
2060 | 2046 | | |
2061 | 2047 | | |
2062 | | - | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
2063 | 2059 | | |
2064 | 2060 | | |
2065 | 2061 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | 808 | | |
816 | 809 | | |
817 | 810 | | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
818 | 816 | | |
819 | 817 | | |
820 | | - | |
| 818 | + | |
| 819 | + | |
821 | 820 | | |
822 | 821 | | |
823 | 822 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4987 | 4987 | | |
4988 | 4988 | | |
4989 | 4989 | | |
4990 | | - | |
| 4990 | + | |
| 4991 | + | |
| 4992 | + | |
| 4993 | + | |
| 4994 | + | |
| 4995 | + | |
| 4996 | + | |
4991 | 4997 | | |
4992 | 4998 | | |
4993 | 4999 | | |
| |||
5009 | 5015 | | |
5010 | 5016 | | |
5011 | 5017 | | |
5012 | | - | |
5013 | | - | |
5014 | | - | |
5015 | | - | |
| 5018 | + | |
5016 | 5019 | | |
5017 | | - | |
5018 | | - | |
| 5020 | + | |
5019 | 5021 | | |
5020 | | - | |
5021 | | - | |
5022 | | - | |
| 5022 | + | |
5023 | 5023 | | |
5024 | | - | |
5025 | | - | |
5026 | | - | |
5027 | | - | |
5028 | | - | |
| 5024 | + | |
| 5025 | + | |
| 5026 | + | |
| 5027 | + | |
| 5028 | + | |
| 5029 | + | |
| 5030 | + | |
5029 | 5031 | | |
5030 | 5032 | | |
5031 | | - | |
5032 | | - | |
5033 | | - | |
| 5033 | + | |
| 5034 | + | |
5034 | 5035 | | |
5035 | 5036 | | |
5036 | 5037 | | |
| |||
0 commit comments