xanderbailey commented on code in PR #428:
URL: https://github.com/apache/datafusion-spark/pull/428#discussion_r4741292349


##########
crates/spark/src/function/decimal_utils.rs:
##########
@@ -0,0 +1,87 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for 
additional information regarding copyright ownership
+// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) 
under one or more contributor license agreements
+
+/// Formats a decimal the way Java's `BigDecimal.toString` does, which is what
+/// Spark prints for a DECIMAL in `to_json` and `format_string`'s `%s`.

Review Comment:
   nit: naming the callers (`to_json`, `format_string`'s `%s`) might go stale 
over time, maybe something like "the text of Spark's `Decimal.toString`, which 
delegates to `BigDecimal.toString`" says why it exists without listing callers.



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