Hi all,
I've recently exported some spatial data from SQL using WKT for the shape and copied it into a table in vertica. The table consists of an ID, LocationName, and LocationWKT fields with LocationWKT as a LongVarchar.
I tried to run the following:
Select LocationName, ST_GeomFromText(LocationWKT) as SpatialMeasure from dev.AdminLocations;
I got this error:
[VP001][5861] [Vertica][VJDBC](5861) ERROR: Error calling processBlock() in User Function ST_GeomFromText at [src/GeomFromText_1arg.cpp:80], error code: 0, message: ParseException: Expected word but encountered end of stream java.lang.RuntimeException: com.vertica.support.exceptions.NonTransientException: [Vertica][VJDBC](5861) ERROR: Error calling processBlock() in User Function ST_GeomFromText at [src/GeomFromText_1arg.cpp:80], error code: 0, message: ParseException: Expected word but encountered end of stream
I'm new to Vertica but not SQL and from looking at the documentation on ST_GeomFromText, my syntax is right. But it seems like there's something I'm missing. Any ideas? I haven't found any other info on this error to help me figure out what I need to change. I have looked through the 7.2 documentation (we're running 7.1 right now) and every example of this function is in an insert statement. I know the geometry data type can't change once it's been set, so could this be causing issues with a select? Does Vertica see my script as trying to change the data type? Thanks for any thoughts on this!
Molly