Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ abstract class InterpretedHashFunction {
extended = """
Examples:
> SELECT _FUNC_('Spark', array(123), 2);
-1321691492
-1321691492
""")
case class Murmur3Hash(children: Seq[Expression], seed: Int) extends HashExpression[Int] {
def this(arguments: Seq[Expression]) = this(arguments, 42)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ case class IfNull(left: Expression, right: Expression, child: Expression)
@ExpressionDescription(
usage = "_FUNC_(expr1, expr2) - Returns null if `expr1` equals to `expr2`, or `expr1` otherwise.",
extended = """
Examples:
> SELECT _FUNC_(2, 2);
NULL
Examples:
> SELECT _FUNC_(2, 2);
NULL
""")
case class NullIf(left: Expression, right: Expression, child: Expression)
extends RuntimeReplaceable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ abstract class StringRegexExpression extends BinaryExpression

See also:
Use RLIKE to match with standard regular expressions.
""")
""")
case class Like(left: Expression, right: Expression) extends StringRegexExpression {

override def escape(v: String): String = StringUtils.escapeLikeRegex(v)
Expand Down Expand Up @@ -175,7 +175,7 @@ case class Like(left: Expression, right: Expression) extends StringRegexExpressi

See also:
Use LIKE to match with simple string pattern.
""")
""")
case class RLike(left: Expression, right: Expression) extends StringRegexExpression {

override def escape(v: String): String = v
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -728,10 +728,10 @@ case class StringLPad(str: Expression, len: Expression, pad: Expression)
""",
extended = """
Examples:
> SELECT _FUNC_('hi', 5, '??');
hi???
> SELECT _FUNC_('hi', 1, '??');
h
> SELECT _FUNC_('hi', 5, '??');
hi???
> SELECT _FUNC_('hi', 1, '??');
h
""")
case class StringRPad(str: Expression, len: Expression, pad: Expression)
extends TernaryExpression with ImplicitCastInputTypes {
Expand Down