dtenedor commented on code in PR #36154:
URL: https://github.com/apache/spark/pull/36154#discussion_r852304131


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/ToNumberParser.scala:
##########
@@ -49,33 +49,58 @@ object ToNumberParser {
   final val WRAPPING_ANGLE_BRACKETS_TO_NEGATIVE_NUMBER_END = 'R'
 
   // This class represents one or more characters that we expect to be present 
in the input string
-  // based on the format string.
-  abstract class InputToken()
+  // based on the format string. The toString method returns a representation 
of each token suitable
+  // for use in error messages.
+  abstract class InputToken() {
+    def toString: String

Review Comment:
   Good point, done.



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