peter-toth commented on code in PR #43671:
URL: https://github.com/apache/spark/pull/43671#discussion_r1383460927


##########
sql/core/src/main/scala/org/apache/spark/sql/package.scala:
##########
@@ -98,7 +98,10 @@ package object sql {
       f
     } else {
       val st = Thread.currentThread().getStackTrace
-      var i = 3
+      var i = 0

Review Comment:
   Ok, I see your point. The link above is wrong as it points to a 
`Throwable.getStackTrace()`, but it seems the same weird behavior can happen 
with `Thread.getStackTrace()` as well: 
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Thread.html#getStackTrace()



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to