BryanCutler commented on issue #23575: [SPARK-26645][PYTHON] Support decimals with negative scale when parsing datatype URL: https://github.com/apache/spark/pull/23575#issuecomment-455257042 How about for `_parse_datatype_string`? It doesn't seem to work ```python In [15]: _parse_datatype_string("decimal(1, -1)") --------------------------------------------------------------------------- Py4JJavaError Traceback (most recent call last) ~/git/spark/python/pyspark/sql/utils.py in deco(*a, **kw) 62 try: ---> 63 return f(*a, **kw) 64 except py4j.protocol.Py4JJavaError as e: ~/git/spark/python/lib/py4j-0.10.8.1-src.zip/py4j/protocol.py in get_return_value(answer, gateway_client, target_id, name) 327 "An error occurred while calling {0}{1}{2}.\n". --> 328 format(target_id, ".", name), value) 329 else: Py4JJavaError: An error occurred while calling z:org.apache.spark.sql.api.python.PythonSQLUtils.parseDataType. : org.apache.spark.sql.catalyst.parser.ParseException: extraneous input '-' expecting INTEGER_VALUE(line 1, pos 11) == SQL == decimal(1, -1) -----------^^^ ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org