feat(rust/sedona-functions): Add emoji shorthand for common ST_ functions#748
Open
paleolimbot wants to merge 3 commits intoapache:mainfrom
Open
feat(rust/sedona-functions): Add emoji shorthand for common ST_ functions#748paleolimbot wants to merge 3 commits intoapache:mainfrom
paleolimbot wants to merge 3 commits intoapache:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As part of our ongoing attempt to innovate on spatial SQL, this PR adds emoji shorthand for most functions which (1) improve expressiveness, (2) helps more SQL fit on one line and (3) reduces the number of bytes required for large SQL queries (important for AI generation).
The notable change is the addition of the custom
Dialectthat relaxes the strict requirement on characters permitted in an identifier sequence, which is a standalone improvement as it also allows other non-ASCII characters in function names as well.Current summary of proposed syntax:
st_dumpst_reversest_xst_isemptyst_yst_isclosedst_zst_iscollectionst_mst_interiorringnst_xminst_translatest_xmaxst_numgeometriesst_yminst_geometrytypest_ymaxst_geometrynst_zminst_scalest_zmaxst_flipcoordinatesst_mminst_makelinest_mmaxst_pointnst_geomfromwktst_envelopest_geogfromwktst_dimensionst_geomfromewktst_azimuthst_geomfromwkbst_astextst_geomfromwkbuncheckedst_asbinaryst_geogfromwkbst_asewkbst_geomfromewkbst_affinest_pointst_rotatest_geogpointst_rotatexst_pointzst_rotateyst_pointmst_pointsst_pointzmst_npointsst_force2dst_haszst_force3dst_hasmst_force3dmst_zmflagst_force4dst_startpointst_sridst_endpointst_crsst_setsridst_setcrs