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

SQL interface to DataFrame? #3479

Open
tk3369 opened this issue Nov 22, 2024 · 1 comment
Open

SQL interface to DataFrame? #3479

tk3369 opened this issue Nov 22, 2024 · 1 comment
Labels
Milestone

Comments

@tk3369
Copy link
Contributor

tk3369 commented Nov 22, 2024

Has anyone thought about taking SQL as query interface for data frames?

For example, doing something like this:

julia> df = DataFrame(x = rand(1:3, 10), y = rand(10))
10×2 DataFrame
 Row │ x      y         
     │ Int64  Float64   
─────┼──────────────────
   12  0.589515
   21  0.72848
   32  0.344321
   41  0.900515
   52  0.667395
   62  0.0749464
   72  0.916652
   81  0.460028
   93  0.284116
  103  0.662666

julia> sql("select x, count(*) from df group by 1", (:df => df))
@bkamins bkamins added this to the 2.0 milestone Nov 23, 2024
@bkamins
Copy link
Member

bkamins commented Nov 23, 2024

This could be doable and I was thinking about it some time ago. Someone would need to write parser of SQL. The point is that I think most people nowadays started using DuckDB interface for writing SQL queries in Julia (but I might be wrong here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants