Skip to content

Commit f33a011

Browse files
committed
cleanup
1 parent 1b12a65 commit f33a011

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

sail/benchmark.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ echo "Install Python packages"
3838
python3 -m venv myenv
3939
source myenv/bin/activate
4040
pip install --upgrade setuptools wheel
41-
env RUSTFLAGS="-C target-cpu=native" pip install "pysail==0.3.3" -v --no-binary pysail
42-
pip install "pyspark[connect]==4.0.0" \
41+
env RUSTFLAGS="-C target-cpu=native" pip install --no-cache-dir "pysail==0.3.3" -v --no-binary pysail
42+
pip install "pyspark-client==4.0.0" \
4343
"protobuf==5.28.3" \
4444
"grpcio==1.71.2" \
4545
"grpcio-status==1.71.2" \

sail/query.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
import os
1818
os.environ["SAIL_PARQUET__BINARY_AS_STRING"] = "true"
19-
# os.environ["SAIL_PARQUET__PUSHDOWN_FILTERS"] = "true"
20-
# os.environ["SAIL_PARQUET__REORDER_FILTERS"] = "true"
19+
os.environ["SAIL_PARQUET__REORDER_FILTERS"] = "true"
2120
os.environ["SAIL_RUNTIME__ENABLE_SECONDARY"] = "true"
2221
os.environ["SAIL_PARQUET__ALLOW_SINGLE_FILE_PARALLELISM"] = "true"
2322

@@ -34,7 +33,7 @@
3433
try:
3534
start = timeit.default_timer()
3635
result = spark.sql(query)
37-
res = result.collect()
36+
res = result.toPandas()
3837
end = timeit.default_timer()
3938
if try_num == 0:
4039
print(res)

0 commit comments

Comments
 (0)