Fix index out of bounds with rtrim().

Change-Id: I8c420a45aacdb0ce8f6a83fa8cdf5e91b8ef1f77
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3268
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins
Fix UDF test

UDF invocations in udf.test should not specify a database. This is how
we switch between testing IR UDFs in the ir_function_test database and
native UDFs in the native_function_test database.

Change-Id: I09ede18f2b91440ef7a2a76b0daf41a007af2671
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3130
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: jenkins
Open and close exprs in tests

Change-Id: Ie4abc8e1e56fc77d68d9656260b8f4adcc2a36e9
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3135
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: jenkins
IMPALA-1053: only log unsupported type warning once

Change-Id: Ibb34e4632f87ac192bb58d4d6616b41e7dac53d2
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3140
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: jenkins