-
Notifications
You must be signed in to change notification settings - Fork 28.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-41015][SQL][PROTOBUF] UnitTest null check for data generator
### What changes were proposed in this pull request? null check for data generator after type conversion. ### Why are the changes needed? To fix a test failure. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? I have tested all the random numbers manually, current unit tests. Closes #38515 from SandishKumarHN/SPARK-41015-UTests. Authored-by: SandishKumarHN <sanysandish@gmail.com> Signed-off-by: Max Gekk <max.gekk@gmail.com>
- Loading branch information
1 parent
5c6c5e6
commit 75643f4
Showing
7 changed files
with
68 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
connector/protobuf/src/test/resources/protobuf/basicmessage_noimports.desc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
� | ||
basicmessage.proto$org.apache.spark.sql.protobuf.protosnestedenum.proto"� | ||
BasicMessage | ||
id (Rid! | ||
string_value ( RstringValue | ||
int32_value (R | ||
int32Value | ||
int64_value (R | ||
int64Value! | ||
double_value (RdoubleValue | ||
float_value (R | ||
floatValue | ||
|
||
bool_value (R boolValue | ||
bytes_value (R | ||
bytesValueS | ||
rnested_enum (20.org.apache.spark.sql.protobuf.protos.NestedEnumRrnestedEnumBBBasicMessageProtobproto3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters