Skip to content

feat: add parameterized queries #111

@MrPowers

Description

@MrPowers

I am currently writing code like this:

cities.to_view("cities", overwrite=True)
countries.to_view("countries", overwrite=True)

sd.sql("""
select * from cities
join countries
where ST_Intersects(cities.geometry, countries.geometry)
""").show()

This could be cool to skip the explicit view registration:

sd.sql("""
select * from cities
join countries
where ST_Intersects(cities.geometry, countries.geometry)
""", cities=cities, countries=countries).show()

It would be especially sweet if other objects (like dates & Shapely objects) could be parameterized too!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions