scanParquet method

LazyFrame scanParquet(
  1. String path, {
  2. int? nRows,
  3. bool parallel = true,
})

Lazily scans the Parquet file at path.

nRows limits the number of rows read. parallel lets Polars read row groups in parallel.

Implementation

LazyFrame scanParquet(String path, {int? nRows, bool parallel = true}) {
  _validatePath(path);
  _validateUnsigned(nRows, 'nRows');
  return _adoptLazy(
    _client.invokeSync('lazyScanParquet', {
      'path': path,
      if (nRows != null) 'nRows': nRows,
      'parallel': parallel,
    }),
  );
}