style: replace RuntimeException with more specific exceptions#437
Conversation
84bfbf1 to
3111d67
Compare
bestbeforetoday
left a comment
There was a problem hiding this comment.
One suggestion. Otherwise this looks good to me.
3111d67 to
c5dd15c
Compare
|
rebased on main and added a commit that uses UncheckedIOException |
bestbeforetoday
left a comment
There was a problem hiding this comment.
Looks good to me. It is yet another PR that looks like it will introduce merge conflicts with #433 though.
d721d32 to
19189ef
Compare
|
I pushed a commit which adds a |
19189ef to
483c590
Compare
bestbeforetoday
left a comment
There was a problem hiding this comment.
One import issue (see comment), but otherwise looks good to me.
| import static io.substrait.isthmus.SqlConverterBase.EXTENSION_COLLECTION; | ||
| import static io.substrait.isthmus.SqlToSubstrait.EXTENSION_COLLECTION; |
There was a problem hiding this comment.
I am surprised there wasn't a compile error with two static imports of the same name. I guess because they actually refer to the same constant. I think there should only be one import here though.
There was a problem hiding this comment.
thanks, this is a bit annoying. this has been happening a couple of times now. I think it's VSCode somehow understanding that EXTENSION_COLLECTION is actually defined in SqlConverterBase which SqlToSubstrait inherits from.
There was a problem hiding this comment.
I pushed a commit switching to SqlConverterBase.EXTENSION_COLLECTION consistently which should help to avoid having VSCode change this line over and over again
3ec87a6 to
39bc8f6
Compare
Signed-off-by: Niels Pardon <par@zurich.ibm.com>
Signed-off-by: Niels Pardon <par@zurich.ibm.com>
Signed-off-by: Niels Pardon <par@zurich.ibm.com>
Signed-off-by: Niels Pardon <par@zurich.ibm.com>
39bc8f6 to
14d8d91
Compare
Signed-off-by: Niels Pardon <par@zurich.ibm.com>
replaces throwing a generic
RuntimeExceptionwith a more specific exception likeIllegalStateException,IllegalArgumentExceptionorUnsupportedOperationException