You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Pieter Minnaar <pi...@gmail.com> on 2015/11/28 21:15:20 UTC
StructType for oracle.sql.STRUCT
Hi,
I need to read Oracle Spatial SDO_GEOMETRY tables into Spark.
I need to know how to create a StructField to use in the schema definition
for the Oracle geometry columns. In the standard JDBC the values are read
as oracle.sql.STRUCT types.
How can I get the same values in Spark SQL?
Regards,
Pieter
Re: StructType for oracle.sql.STRUCT
Posted by andy petrella <an...@gmail.com>.
Warf... such an heavy tasks man!
I'd love to follow your work on that (I've a long XP in geospatial too), is
there a repo available already for that?
The hard part will be to support all descendant types I guess (line,
mutlilines, and so on), then creating the spatial operators.
The only project I know that has this kindo of aim (although, it's very
limited and simple atm) is magellan https://github.com/harsha2010/magellan
andy
On Sat, Nov 28, 2015 at 9:15 PM Pieter Minnaar <pi...@gmail.com>
wrote:
> Hi,
>
> I need to read Oracle Spatial SDO_GEOMETRY tables into Spark.
>
> I need to know how to create a StructField to use in the schema definition
> for the Oracle geometry columns. In the standard JDBC the values are read
> as oracle.sql.STRUCT types.
>
> How can I get the same values in Spark SQL?
>
> Regards,
> Pieter
>
--
andy