Skip to content

The list of available functions in the current SQL engine #34

Closed

Description

@Kuailun

Please allow me to create one more issue.

I was trying the ExecuteSQL endpoint yesterday and found the following script not working:

SELECT * FROM ( SELECT *, 3440.065 * 2 * ASIN( SQRT( POWER(SIN(RADIANS(navaid_latitude - 21.77) / 2), 2) + COS(RADIANS(21.77)) * COS(RADIANS(navaid_latitude)) * POWER(SIN(RADIANS(navaid_longitude + 72.27) / 2), 2) ) ) AS distance_nm FROM tbl_d_vhfnavaids ) AS t WHERE distance_nm <= 200 ORDER BY distance_nm ASC LIMIT 5;

Description: Get a list of navaids based on the input location, and then order the navaids based on the distance. And finally limit it by 5 records.

According to my test, it seems that some of the SQLite functions used here are not supported in the wasm.
Is it possible to provide a list of supported functions?

Activity

  1. pepperoni505 commented on Nov 24, 2025

    @pepperoni505
    Contributor

    Hi,

    It looks like we actually didn't have the math functions enabled in the bundled SQLite version. We have corrected that in #35. I tested your statement on my end and it works now.

    As for a thorough list, we don't really have a nice way of getting that aside from looking at the build flags in this file.

    Please let us know if you notice any other missing functions, as it is likely we just need to enable them.

    / Jack

  2. pepperoni505 commented on Dec 8, 2025

    @pepperoni505
    Contributor

    Hi @Kuailun,

    Following up on this, did our fix resolve your issue?

  3. Kuailun commented on Dec 30, 2025

    @Kuailun
    Author

    Yeap it is good now. Thanks!
    Sorry for the late response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions