File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ echo "Install Python packages"
3838python3 -m venv myenv
3939source myenv/bin/activate
4040pip 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" \
Original file line number Diff line number Diff line change 1616
1717import os
1818os .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"
2120os .environ ["SAIL_RUNTIME__ENABLE_SECONDARY" ] = "true"
2221os .environ ["SAIL_PARQUET__ALLOW_SINGLE_FILE_PARALLELISM" ] = "true"
2322
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 )
You can’t perform that action at this time.
0 commit comments