pola-rs / polars-cli

CLI interface for running SQL queries with Polars as backend
https://pola.rs/
MIT License
159 stars 12 forks source link

polars_cli hangs in windows 7 #45

Open l1t1 opened 11 months ago

l1t1 commented 11 months ago

Checks

Reproducible example

cmd
poloars

Issue description

it shows many empty lines and cannot input anything

C:\Users\LD>polars
Polars CLI version 0.5.1
Type .help for help.
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉
〉----------------blinking

when I using a sql string as parameter, it works


C:\Users\LD>polars "select count(*) from read_parquet('d:/slow3.parquet')"
┌────────┐
│ count  │
│ ---    │
│ u32    │
╞════════╡
│ 100000 │
└────────┘

Expected behavior

it accept some input and run the sql.

Installed version

0.5.1

l1t1 commented 11 months ago

BTW pipeline doesn't work

C:\Users\LD>echo "select count(*) from read_parquet('d:/slow3.parquet')" |polars
Error: sql parser error: Expected an SQL statement, found: "select count(*) from read_parquet('d:/slow3.parquet')" at Line: 1, Column 1
l1t1 commented 10 months ago

I tried download https://github.com/pola-rs/polars-cli/releases/download/0.5.1/polars-cli-0.5.1-x86_64-pc-windows-msvc.tar.gz and ungzip the file, then rename it to polars051.exe,then run it, same quesiton as above

alexander-beedie commented 10 months ago

FYI: Windows 7 was "end of life" as of 14th Jan 2020 (four years ago), and even the paid/corporate "Extended Security Updates" (ESU) users were only able to receive updates until 10th Jan 2023 (one year ago). I think it's safe to say we won't be actively supporting this version unless it turns out to be a very low effort fix 😅

eitsupi commented 9 months ago

FYI, r-polars also discovered a problem where it stopped working on Windows 7 at some point, but we closed the problem because it was an effect of something upstream and it was impractical to closed. pola-rs/r-polars#383