@@ -69,7 +69,7 @@ When `spark.sql.ansi.enabled` is set to `true` and an overflow occurs in numeric
6969``` sql
7070-- `spark.sql.ansi.enabled=true`
7171SELECT 2147483647 + 1 ;
72- java .lang .ArithmeticException: integer overflow
72+ java .lang .ArithmeticException: integer overflow
7373
7474-- `spark.sql.ansi.enabled=false`
7575SELECT 2147483647 + 1 ;
@@ -94,10 +94,10 @@ In future releases, the behaviour of type coercion might change along with the o
9494
9595-- `spark.sql.ansi.enabled=true`
9696SELECT CAST(' a' AS INT );
97- java .lang .NumberFormatException: invalid input syntax for type numeric : a
97+ java .lang .NumberFormatException: invalid input syntax for type numeric : a
9898
9999SELECT CAST(2147483648L AS INT );
100- java .lang .ArithmeticException: Casting 2147483648 to int causes overflow
100+ java .lang .ArithmeticException: Casting 2147483648 to int causes overflow
101101
102102-- `spark.sql.ansi.enabled=false` (This is a default behaviour)
103103SELECT CAST(' a' AS INT );
@@ -119,8 +119,8 @@ CREATE TABLE t (v INT);
119119
120120-- `spark.sql.storeAssignmentPolicy=ANSI`
121121INSERT INTO t VALUES (' 1' );
122- org .apache .spark .sql .AnalysisException: Cannot write incompatible data to table ' `default`.`t`' :
123- - Cannot safely cast ' v' : StringType to IntegerType;
122+ org .apache .spark .sql .AnalysisException: Cannot write incompatible data to table ' `default`.`t`' :
123+ - Cannot safely cast ' v' : StringType to IntegerType;
124124
125125-- `spark.sql.storeAssignmentPolicy=LEGACY` (This is a legacy behaviour until Spark 2.x)
126126INSERT INTO t VALUES (' 1' );
0 commit comments