Skip to content
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

change type returned by st_x and xt_y to double #324

Merged

Conversation

aarroyosal
Copy link
Contributor

Description

Shortcut

Detected a bug where the result of the functions ST_X and ST_Y cannot be used as arguments of the function ST_POINT without casting it to DOUBLE.

To fix that, the type returned by those functions is changed to Double

Type of change

Changed

  • Change type returned by ST_X and ST_Y to Double

Acceptance

cd clouds/databricks
make deploy
make test

Run the query that was not working in a databricks notebook

WITH t AS(
  SELECT ST_X(geom) AS long, ST_Y(geom) AS lat FROM carto_dev_data.points_100k limit 100
)
SELECT ST_POINT(long, lat) FROM t

image

@shortcut-integration
Copy link

@aarroyosal aarroyosal requested a review from Jesus89 September 21, 2022 07:15
@aarroyosal aarroyosal merged commit c6c5f42 into master Sep 21, 2022
@aarroyosal aarroyosal deleted the bug/sc-257910/databricks-at-beta-release-the-st-x-y-function branch September 21, 2022 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants