petern48 commented on code in PR #2:
URL: https://github.com/apache/sedona-db/pull/2#discussion_r2310646746
##########
rust/sedona-common/src/error.rs:
##########
@@ -0,0 +1,34 @@
+/// Macro to create Sedona Internal Error that avoids the misleading error
message from
+/// DataFusionError::Internal.
+#[macro_export]
+macro_rules! sedona_internal_err {
+ ($($args:expr),*) => {{
+ let msg = std::format!(
+ "SedonaDB internal error: {}{}.\nThis issue was likely caused by a
bug in SedonaDB's code. \
+ Please help us to resolve this by filing a bug report in our issue
tracker: \
+ https://github.com/apache/sedona-db/issues",
+ std::format!($($args),*),
+ datafusion_common::DataFusionError::get_back_trace(),
Review Comment:
Ah, that's what you meant
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]