diff --git a/google/cloud/aiplatform/datasets/tabular_dataset.py b/google/cloud/aiplatform/datasets/tabular_dataset.py index 1fe23f5ee2..f9a9658d7e 100644 --- a/google/cloud/aiplatform/datasets/tabular_dataset.py +++ b/google/cloud/aiplatform/datasets/tabular_dataset.py @@ -150,7 +150,7 @@ def _retrieve_gcs_source_columns( while first_new_line_index == -1: line += blob.download_as_bytes( - start=start_index, end=start_index + increment + start=start_index, end=start_index + increment - 1 ).decode("utf-8") first_new_line_index = line.find("\n")