RE: how to retrieve the value of a column of type date/timestamp from a Spark SQL Row

2014-10-29 Thread Mohammed Guller
:23 PM To: Zhan Zhang Cc: Mohammed Guller; user@spark.apache.org Subject: Re: how to retrieve the value of a column of type date/timestamp from a Spark SQL Row Or "def getAs[T](i: Int): T" Best Regards, Shixiong Zhu 2014-10-29 13:16 GMT+08:00 Zhan Zhang mailto:zzh...@hortonworks.com&

Re: how to retrieve the value of a column of type date/timestamp from a Spark SQL Row

2014-10-28 Thread Shixiong Zhu
Or "def getAs[T](i: Int): T" Best Regards, Shixiong Zhu 2014-10-29 13:16 GMT+08:00 Zhan Zhang : > Can you use row(i).asInstanceOf[] > > Thanks. > > Zhan Zhang > > > > On Oct 28, 2014, at 5:03 PM, Mohammed Guller > wrote: > > Hi – > > The Spark SQL Row class has methods such as getInt, getLong,

Re: how to retrieve the value of a column of type date/timestamp from a Spark SQL Row

2014-10-28 Thread Zhan Zhang
Can you use row(i).asInstanceOf[] Thanks. Zhan Zhang On Oct 28, 2014, at 5:03 PM, Mohammed Guller wrote: > Hi – > > The Spark SQL Row class has methods such as getInt, getLong, getBoolean, > getFloat, getDouble, etc. However, I don’t see a getDate method. So how can > one retrieve a date/