Skip to content

Commit

Permalink
Disable feature
Browse files Browse the repository at this point in the history
  • Loading branch information
desmondcheongzx committed Sep 28, 2024
1 parent c3ce7e1 commit 409ca48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/daft-csv/src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ pub async fn stream_csv(
let uri = uri.as_str();
let (source_type, _) = parse_url(uri)?;
let is_compressed = CompressionCodec::from_uri(uri).is_some();
if matches!(source_type, SourceType::File) && !is_compressed {
let use_local = false;
if matches!(source_type, SourceType::File) && !is_compressed && use_local {
let stream = stream_csv_local(
uri,
convert_options,
Expand Down Expand Up @@ -228,7 +229,8 @@ async fn read_csv_single_into_table(
) -> DaftResult<Table> {
let (source_type, _) = parse_url(uri)?;
let is_compressed = CompressionCodec::from_uri(uri).is_some();
if matches!(source_type, SourceType::File) && !is_compressed {
let use_local = false;
if matches!(source_type, SourceType::File) && !is_compressed && use_local {
return read_csv_local(
uri,
convert_options,
Expand Down

0 comments on commit 409ca48

Please sign in to comment.