Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.1.0
-
None
-
None
Description
In this ticket, we plan to list all cases that PostgreSQL throws an exception but Spark SQL is NULL.
When porting the boolean.sql found a case:
- Cast unaccepted value to boolean type throws invalid input syntax.
When porting the case.sql found a case:
- Division by zero throws an exception.
When porting the date.sql found a case:
- Invalid date throws an exception.
When porting the int2.sql found a case:
- Invalid short throws an exception.
When porting the float4.sql found three case:
- Bad input throws an exception.
- Bad special inputs throws an exception.
- Divide by zero throws an exception.
When porting the float8.sql found five case:
- Bad input throws an exception.
- Bad special inputs throws an exception.
- Cannot take logarithm of zero throws an exception.
- Cannot take logarithm of a negative number throws an exception.
- Divide by zero throws an exception.
When porting the numeric.sql found six case:
- Invalid decimal throws an exception.
- decimal type can not accept Infinity and -Infinity.
- Invalid inputs throws an exception.
- Invalid inputs throws an exception.
- Invalid inputs throws an exception.
- Invalid inputs throws an exception.