Skip to content

Commit

Permalink
[SPARK-8223][SPARK-8224] Integer -> Int
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekbecker committed Jul 2, 2015
1 parent f628706 commit f3f64e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sql/core/src/main/scala/org/apache/spark/sql/functions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ object functions {
* @group math_funcs
* @since 1.5.0
*/
def shiftLeft(e: Column, numBits: Integer): Column = ShiftLeft(e.expr, lit(numBits).expr)
def shiftLeft(e: Column, numBits: Int): Column = ShiftLeft(e.expr, lit(numBits).expr)

/**
* Shift the the given value numBits left. If the given value is a long value, this function
Expand All @@ -1314,7 +1314,7 @@ object functions {
* @group math_funcs
* @since 1.5.0
*/
def shiftLeft(columnName: String, numBits: Integer): Column =
def shiftLeft(columnName: String, numBits: Int): Column =
shiftLeft(Column(columnName), numBits)

/**
Expand All @@ -1324,7 +1324,7 @@ object functions {
* @group math_funcs
* @since 1.5.0
*/
def shiftRight(e: Column, numBits: Integer): Column = ShiftRight(e.expr, lit(numBits).expr)
def shiftRight(e: Column, numBits: Int): Column = ShiftRight(e.expr, lit(numBits).expr)

/**
* Shift the the given value numBits right. If the given value is a long value, it will return
Expand All @@ -1333,7 +1333,7 @@ object functions {
* @group math_funcs
* @since 1.5.0
*/
def shiftRight(columnName: String, numBits: Integer): Column =
def shiftRight(columnName: String, numBits: Int): Column =
shiftRight(Column(columnName), numBits)

/**
Expand Down

0 comments on commit f3f64e6

Please sign in to comment.