Re: SQL UDF problem (with re to types)

2016-01-17 Thread Ted Yu
>>>>>> { >>>>>> return "testing"; >>>>>> } >>>>>> }, DataTypes.StringType); >>>>>> >>>>>> Usage: >>>

Re: SQL UDF problem (with re to types)

2016-01-14 Thread Michael Armbrust
gType); >>>>> >>>>> Usage: >>>>> query = "SELECT Test(82.4)"; >>>>> result = sqlCtx.sql(query).first(); >>>>> System.out.println(result.toString()); >>>>> >>>>

Re: SQL UDF problem (with re to types)

2016-01-14 Thread Raghu Ganti
;SELECT Test(82.4)"; >>>> result = sqlCtx.sql(query).first(); >>>> System.out.println(result.toString()); >>>> >>>> Problem: Class Cast exception thrown >>>> Caused by: java.lang.ClassCastException

Re: SQL UDF problem (with re to types)

2016-01-14 Thread Michael Armbrust
System.out.println(result.toString()); >>> >>> Problem: Class Cast exception thrown >>> Caused by: java.lang.ClassCastException: java.math.BigDecimal cannot be >>> cast >>> to java.lang.Double >>> >>> This problem occurs

Re: SQL UDF problem (with re to types)

2016-01-13 Thread Raghu Ganti
by: java.lang.ClassCastException: java.math.BigDecimal cannot be >> cast >> to java.lang.Double >> >> This problem occurs with Spark v1.5.2 and 1.6.0. >> >> >> >> -- >> View this message in context: >> http://apache-spark-use

Re: SQL UDF problem (with re to types)

2016-01-13 Thread Ted Yu
astException: java.math.BigDecimal cannot be > cast > to java.lang.Double > > This problem occurs with Spark v1.5.2 and 1.6.0. > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n

Re: SQL UDF problem (with re to types)

2016-01-13 Thread Ted Yu
> System.out.println(result.toString()); > > Problem: Class Cast exception thrown > Caused by: java.lang.ClassCastException: java.math.BigDecimal cannot be > cast > to java.lang.Double > > This problem occurs with Spark v1.5.2 and 1.6.0. > > > > --

SQL UDF problem (with re to types)

2016-01-13 Thread raghukiran
ext: http://apache-spark-user-list.1001560.n3.nabble.com/SQL-UDF-problem-with-re-to-types-tp25968.html Sent from the Apache Spark User List mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@spark.apache.