viirya commented on code in PR #170:
URL: 
https://github.com/apache/arrow-datafusion-comet/pull/170#discussion_r1514943865


##########
DEBUGGING.md:
##########
@@ -94,3 +94,62 @@ 
https://mail.openjdk.org/pipermail/hotspot-dev/2019-September/039429.html
 
 Detecting the debugger
 
https://stackoverflow.com/questions/5393403/can-a-java-application-detect-that-a-debugger-is-attached#:~:text=No.,to%20let%20your%20app%20continue.&text=I%20know%20that%20those%20are,meant%20with%20my%20first%20phrase).
+
+# Verbose debug
+By default, Comet outputs the exception details specific for Comet. 
+
+```scala
+scala> spark.sql("my_failing_query").show(false)
+
+24/03/05 17:00:07 ERROR Executor: Exception in task 0.0 in stage 0.0 (TID 0)/ 
1]
+org.apache.comet.CometNativeException: Internal error: MIN/MAX is not expected 
to receive scalars of incompatible types (Date32("NULL"), Int32(15901)).
+This was likely caused by a bug in DataFusion's code and we would welcome that 
you file an bug report in our issue tracker
+        at org.apache.comet.Native.executePlan(Native Method)
+        at 
org.apache.comet.CometExecIterator.executeNative(CometExecIterator.scala:65)
+        at 
org.apache.comet.CometExecIterator.getNextBatch(CometExecIterator.scala:111)
+        at 
org.apache.comet.CometExecIterator.hasNext(CometExecIterator.scala:126)
+
+```
+
+There is a verbose exception option by leveraging Datafusion 
[backtraces](https://arrow.apache.org/datafusion/user-guide/example-usage.html#enable-backtraces)

Review Comment:
   ```suggestion
   There is a verbose exception option by leveraging DataFusion 
[backtraces](https://arrow.apache.org/datafusion/user-guide/example-usage.html#enable-backtraces)
   ```



-- 
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]

Reply via email to