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

Fix group by #200

Open
scsmithr opened this issue Aug 21, 2024 · 0 comments
Open

Fix group by #200

scsmithr opened this issue Aug 21, 2024 · 0 comments

Comments

@scsmithr
Copy link
Member

     Running `target/debug/rayexec_bin ' SELECT 
        COUNT(sales.sale_date),
        lookup.borough_name
    FROM 
        '\''https://raw.githubusercontent.com/GlareDB/tutorial_data/main/nyc_sales/sale_year%3D2022/sale_month%3D1/f55363e2587849bcb25c057be706c69d-0.parquet'\'' sales
    JOIN 
        read_postgres(
            '\''postgresql://demo:[email protected]:5432/postgres'\'', 
            '\''public'\'',
            '\''borough_lookup'\''
        ) lookup
    ON sales.borough = lookup.borough_id
    GROUP BY lookup.borough_name
'`
┌───────┬──────────────┐
│ count │ borough_name │
│ Int64 │ Utf8         │
├───────┼──────────────┤
│  1683 │ QUEENS       │
│  2429 │ MANHATTAN    │
│   781 │ STATEN ISLA… │
│  2270 │ BROOKLYN     │
│   581 │ BRONX        │
└───────┴──────────────┘

Should be

1683 MANHATTAN
581  BRONX
2270 BROOKLYN
2429 QUEENS
781  STATEN ISL
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

No branches or pull requests

1 participant