Re: Java access to internal representation of DataTypes.DateType

2017-06-14 Thread Anton Kravchenko
aki Ishizaki > > > > From:Anton Kravchenko > To:"user @spark" > Date: 2017/06/14 01:16 > Subject:Java access to internal representation of > DataTypes.DateType > -- > > > > How one would access to i

Re: Java access to internal representation of DataTypes.DateType

2017-06-14 Thread Kazuaki Ishizaki
Does this code help you? https://github.com/apache/spark/blob/master/sql/core/src/test/java/test/org/apache/spark/sql/JavaDataFrameSuite.java#L156-L194 Kazuaki Ishizaki From: Anton Kravchenko To: "user @spark" Date: 2017/06/14 01:16 Subject: Java access t

Java access to internal representation of DataTypes.DateType

2017-06-13 Thread Anton Kravchenko
How one would access to internal representation of DataTypes.DateType from Spark (2.0.1) Java API? From https://github.com/apache/spark/blob/51b1c1551d3a7147403b9e821fcc7c8f57b4824c/sql/catalyst/src/main/scala/org/apache/spark/sql/types/DateType.scala : "Internally, this is represented as the numb