Commit af45052
[SPARK-49373][PROTOBUF][TESTS] Fix
### What changes were proposed in this pull request?
This patch modifies `ProtobufFunctionsSuite`'s test case `SPARK-49121: from_protobuf and to_protobuf SQL functions` to check the stop index depending on the file path length.
### Why are the changes needed?
During debugging CI failure in #47843, we found that `ProtobufFunctionsSuite`'s test case `SPARK-49121: from_protobuf and to_protobuf SQL functions` is environment-dependent.
In the test, it checks the start and stop indices of SQL text fragment but the fragment length depends on the repo name of the author of a PR.
### Does this PR introduce _any_ user-facing change?
No, test only.
### How was this patch tested?
Unit test
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #47859 from viirya/fix_protobuf_test.
Authored-by: Liang-Chi Hsieh <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>ProtobufFunctionsSuite to be environment-independent1 parent e95618f commit af45052
File tree
1 file changed
+12
-10
lines changed- connector/protobuf/src/test/scala/org/apache/spark/sql/protobuf
1 file changed
+12
-10
lines changedLines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2085 | 2085 | | |
2086 | 2086 | | |
2087 | 2087 | | |
| 2088 | + | |
2088 | 2089 | | |
2089 | 2090 | | |
2090 | 2091 | | |
| |||
2099 | 2100 | | |
2100 | 2101 | | |
2101 | 2102 | | |
2102 | | - | |
| 2103 | + | |
2103 | 2104 | | |
2104 | | - | |
| 2105 | + | |
2105 | 2106 | | |
2106 | 2107 | | |
2107 | 2108 | | |
| |||
2121 | 2122 | | |
2122 | 2123 | | |
2123 | 2124 | | |
| 2125 | + | |
2124 | 2126 | | |
2125 | 2127 | | |
2126 | 2128 | | |
| |||
2137 | 2139 | | |
2138 | 2140 | | |
2139 | 2141 | | |
2140 | | - | |
2141 | | - | |
| 2142 | + | |
2142 | 2143 | | |
2143 | | - | |
| 2144 | + | |
2144 | 2145 | | |
2145 | 2146 | | |
2146 | 2147 | | |
| 2148 | + | |
2147 | 2149 | | |
2148 | 2150 | | |
2149 | 2151 | | |
| |||
2157 | 2159 | | |
2158 | 2160 | | |
2159 | 2161 | | |
2160 | | - | |
| 2162 | + | |
2161 | 2163 | | |
2162 | | - | |
| 2164 | + | |
2163 | 2165 | | |
2164 | 2166 | | |
2165 | 2167 | | |
| |||
2178 | 2180 | | |
2179 | 2181 | | |
2180 | 2182 | | |
| 2183 | + | |
2181 | 2184 | | |
2182 | 2185 | | |
2183 | 2186 | | |
| |||
2194 | 2197 | | |
2195 | 2198 | | |
2196 | 2199 | | |
2197 | | - | |
2198 | | - | |
| 2200 | + | |
2199 | 2201 | | |
2200 | | - | |
| 2202 | + | |
2201 | 2203 | | |
2202 | 2204 | | |
2203 | 2205 | | |
| |||
0 commit comments