-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ST_X and ST_Y don't work as expected #23
Comments
Are you on the same version as you were before? We've seen this before but have never been able to repro to figure out what the issue is. |
|
Thanks. I just realized you had already given us this information in the last issue. Would you mind testing out a couple of jar files if I try a bunch of different changes to see what the issue is? |
No problem: glad to help |
Great. I'll put something together. |
@doublebyte1 Are you able to compile this project with ant? I think I might actually have an idea. If not, I'll send you a jar. |
Also, this is supposed to be fixed in Hive 14, but you might try setting |
@climbage which project would you like me to compile? |
I confirm that setting hive.cache.expr.evaluation to FALSE, removes the bug. |
Oh, that's definitely a bug in Hive then. There is still the question of whether we are doing something different that causes this bug to happen. Thanks for testing that out. |
For cross-reference, I assume the Hive issue referred to is [HIVE-7314] Wrong results of UDF when hive.cache.expr.evaluation is set. The relevant condition appears to be the nesting of UDFs, in this case concatenation around ST_Geometry calls. A fix/workaround of changing the |
Does the issue reproduce with spatial-framework-for-hadoop master? hive> select concat(ST_X(shape), "," , ST_Y(shape)) from randall.test15e3;
15.0,5.0
5.0,35.0
23.0,23.0
32.0,22.0
37.0,28.0
22.0,33.0
28.0,38.0
34.0,34.0
62.0,19.0
71.0,14.0
75.0,25.0
65.0,35.0
55.0,49.0
65.0,45.0
45.0,66.0 |
Thanks for the feedback, |
Does the issue reproduce with spatial-framework-for-hadoop v1.2? |
Sorry @randallwhitman : I no longer have the development environment to try this |
I want to use the ST_X() and ST_Y() geometry functions, in order to get the x,y coordinates of a point, and build a string from it.
If I use them within a select, like this:
They work is expected:
In order to build the string, I make the query like this:
And as a result, it overrides the second call (ST_X), with the results of the first call (ST_Y):
If I reverse, the call like this:
,the same thing applies and I have the ST_X coordinate repeated in place of ST_Y:
Could this be a bug?
The text was updated successfully, but these errors were encountered: