Hi,

Is your code running on SPARK_HOME/bin/spark-shell ?
If spark-shell throws the same error, it looks like this is a Spark's
problem and you'll get better answer from Spark's mailing list.
Otherwise, could you share how to reproduce the problem? How did you create
your parquet file?

Thanks,
moon

On Mon, May 18, 2015 at 6:30 PM François Valadier <
[email protected]> wrote:

> Hi everyone,
>
> I try to load a parquet file and I fails with the following error :
>
> java.lang.RuntimeException: Unsupported dataType:
> {"type":"struct","fields":[{"name":"fStationId","type":"string","nullable":true,"metadata":{}},{"name":"fBanking","type":"boolean","nullable":true,"metadata":{}},{"name":"fBonus","type":"boolean","nullable":true,"metadata":{}},{"name":"fStatus","type":"string","nullable":true,"metadata":{}},{"name":"fBikeStands","type":"float","nullable":true,"metadata":{}},{"name":"fAvailableBikeStands","type":"float","nullable":true,"metadata":{}},{"name":"fAvailableBikes","type":"float","nullable":true,"metadata":{}},{"name":"fMonth","type":"string","nullable":true,"metadata":{}},{"name":"fDayOfWeek","type":"string","nullable":true,"metadata":{}},{"name":"fHour","type":"string","nullable":true,"metadata":{}},{"name":"fRoundedMinutes","type":"string","nullable":true,"metadata":{}},{"name":"sLat","type":"float","nullable":true,"metadata":{}},{"name":"sLong","type":"float","nullable":true,"metadata":{}},{"name":"sAlt","type":"float","nullable":true,"metadata":{}},{"name":"sPopulation","type":"float","nullable":true,"metadata":{}},{"name":"sArea","type":"float","nullable":true,"metadata":{}},{"name":"sPerimeter","type":"float","nullable":true,"metadata":{}},{"name":"sZipcode","type":"string","nullable":true,"metadata":{}}]},
> [1.1] failure: `TimestampType' expected but `{' found
>
> There are no timestamps in my data but the bug is this one.
> Do you have any idea ?
>
> Thanks a lot,
> F
>
>
> --
> [image: Openvalue.co] <http://www.openvalue.co/>
>
> *François VALADIER | Data Scientist*
>
> Ligne directe : +33 1 <%2B33%201%2044%2043%2054%2032> 44 34 02 53
> <%2B33%201%2044%2043%2054%2032>
> Mobile : +33 6 75 85 80 49 <%2B33%206%2088%2046%2022%2084>
>
> *openvalue.co <http://openvalue.co/>*
> 7, rue Léo Delibes - 75116 Paris
>
>
>

Reply via email to