Skip to content

Commit 9232ba2

Browse files
committed
updated
1 parent 888ae9d commit 9232ba2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercion.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ object HiveTypeCoercion {
7373
DoubleType)
7474

7575
/**
76+
* Case 1 type widening (see the classdoc comment above for HiveTypeCoercion).
77+
*
7678
* Find the tightest common type of two types that might be used in a binary expression.
7779
* This handles all numeric types except fixed-precision decimals interacting with each other or
7880
* with primitive types, because in that case the precision and scale of the result depends on
@@ -129,7 +131,7 @@ object HiveTypeCoercion {
129131
}
130132

131133
/**
132-
* Case 2 type widening (see the classdoc comment above for HiveTypeCoercion.
134+
* Case 2 type widening (see the classdoc comment above for HiveTypeCoercion).
133135
*
134136
* i.e. the main difference with [[findTightestCommonTypeOfTwo]] is that here we allow some
135137
* loss of precision when widening decimal and double.

0 commit comments

Comments
 (0)