This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new 768430f17 Use lexical_core in CSV and JSON parser (#4050)
768430f17 is described below

commit 768430f17fbab1b29969fab721ca1708b4719957
Author: Raphael Taylor-Davies <[email protected]>
AuthorDate: Tue Apr 11 14:17:31 2023 +0100

    Use lexical_core in CSV and JSON parser (#4050)
---
 arrow-cast/src/parse.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arrow-cast/src/parse.rs b/arrow-cast/src/parse.rs
index cc8254916..fd248f2be 100644
--- a/arrow-cast/src/parse.rs
+++ b/arrow-cast/src/parse.rs
@@ -452,7 +452,7 @@ macro_rules! parser_primitive {
     ($t:ty) => {
         impl Parser for $t {
             fn parse(string: &str) -> Option<Self::Native> {
-                string.parse::<Self::Native>().ok()
+                lexical_core::parse::<Self::Native>(string.as_bytes()).ok()
             }
         }
     };

Reply via email to