s-akhtar-baig opened a new issue, #6910:
URL: https://github.com/apache/iceberg/issues/6910

   ### Apache Iceberg version
   
   1.1.0 (latest release)
   
   ### Query engine
   
   None
   
   ### Please describe the bug 🐞
   
   SchemaParser.fromJson(String schema) throws an error if the type string is 
decimal(p,s), but the call is successful for decimal(p, s). 
   
   I looked at the Types class and it looks like the DECIMAL pattern is 
"decimal\\((\\d+),\\s+(\\d+)\\)". Can we change this to 
"decimal\\((\\d+),\\s*(\\d+)\\)" instead to avoid throwing an error when a 
whitespace is present in the type string?
   
   For reference: 
   
https://github.com/apache/iceberg/blob/master/api/src/main/java/org/apache/iceberg/types/Types.java
 : line number 57


-- 
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: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to