Skip to content

Commit

Permalink
replace view bounds with implicit parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
willb committed Jul 14, 2014
1 parent ec35c80 commit a30a037
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ case class Substring(str: Expression, pos: Expression, len: Expression) extends
override def children = str :: pos :: len :: Nil

@inline
def slice[T, C <% IndexedSeqOptimized[T,_]](str: C, startPos: Int, sliceLen: Int): Any = {
def slice[T, C <: Any](str: C, startPos: Int, sliceLen: Int)(implicit ev: (C=>IndexedSeqOptimized[T,_])): Any = {
val len = str.length
// Hive and SQL use one-based indexing for SUBSTR arguments but also accept zero and
// negative indices for start positions. If a start index i is greater than 0, it
Expand Down

0 comments on commit a30a037

Please sign in to comment.