Commit cc2ecef
[SPARK-55320][SQL][CONNECT] Use raise_error instead of divide by zero in Observation tests
### What changes were proposed in this pull request?
Use raise_error instead of divide by zero in Observation tests
### Why are the changes needed?
The tests fail when ANSI mode is disabled.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
`SPARK_ANSI_SQL_MODE="false" build/sbt "sql/testOnly *DatasetSuite -- -z SPARK-55150"`
`SPARK_ANSI_SQL_MODE="false" build/sbt "connect-client-jvm/testOnly *ClientE2ETestSuite -- -z SPARK-55150"`
### Was this patch authored or co-authored using generative AI tooling?
Yes
Closes #54099 from heyihong/SPARK-55320.
Authored-by: Yihong He <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>1 parent 3f5fd65 commit cc2ecef
File tree
2 files changed
+6
-3
lines changed- sql
- connect/client/jvm/src/test/scala/org/apache/spark/sql/connect
- core/src/test/scala/org/apache/spark/sql
2 files changed
+6
-3
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1620 | 1620 | | |
1621 | 1621 | | |
1622 | 1622 | | |
1623 | | - | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1624 | 1627 | | |
1625 | 1628 | | |
1626 | 1629 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1164 | 1164 | | |
1165 | 1165 | | |
1166 | 1166 | | |
1167 | | - | |
| 1167 | + | |
1168 | 1168 | | |
1169 | 1169 | | |
1170 | 1170 | | |
| |||
1173 | 1173 | | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | | - | |
| 1176 | + | |
1177 | 1177 | | |
1178 | 1178 | | |
1179 | 1179 | | |
| |||
0 commit comments