@kapa.ai
Getting below error for some parquet files of a table when trying to move data from gcs to snowflake .
2025-09-30 21
4126 source ERROR Error parsing record. This could be due to a mismatch between the config's file type and the actual file type, or because the file or record is not parseable. stream=db_coupon file=
https://storage.googleapis.com/lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_coupon/2025_09_30_1759196666701_3.parquet?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=ll-gcs-snowflake-via-airbyte%40mpaanibackend.iam.gserviceaccount.com%2F20250930%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20250930T115617Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=197437e8bfdf58277edde73c6db9768db2b4c95b4bc000e69dc2c836ba37012bef042b76cfa0770ce4ccd091f54549d767ffd2e37b04de9b0a78275bfe80331f08abe908a045b75618e1e5bcfb7cbe0edc61e8c2c47da45200144d2fe58cd2f375c0ee1fcb8ba4282c04252d9a8c093fbb18084ca8cfab2844c79d217b7bc5f92cc590c8a76dc53053b1f8a1823da464539d265cf20f6afa5e7085879f27c5e1531a5ed83e382b23440e94d2409e22e2cfd4daea179b9c9b7bf97012b5bd3157297cfa36bf2020f7107a51a3dab28b2b9c7bbef82d5e7485fb31964c50876396a45eedfc1dc3517dc161f1ef6124da5867d45cd02c71cf00812d19d57e308fee line_no=1913749 n_skipped=0
Stack Trace: Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 779, in _error_catcher
yield
File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 925, in _raw_read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
urllib3.exceptions.IncompleteRead: IncompleteRead(138532099 bytes read, 47392669 more expected)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 820, in generate
yield from self.raw.stream(chunk_size, decode_content=True)
File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 1091, in stream
data = self.read(amt=amt, decode_content=decode_content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 1008, in read
data = self._raw_read(amt)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 903, in _raw_read
with self._error_catcher():
File "/usr/local/lib/python3.11/contextlib.py", line 158, in
exit
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 803, in _error_catcher
raise ProtocolError(arg, e) from e
urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(138532099 bytes read, 47392669 more expected)', IncompleteRead(138532099 bytes read, 47392669 more expected))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/file_types/parquet_parser.py", line 74, in parse_records
batch = reader.read_row_group(row_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyarrow/parquet/core.py", line 468, in read_row_group
return self.reader.read_row_group(i, column_indices=column_indices,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow/_parquet.pyx", line 1608, in pyarrow._parquet.ParquetReader.read_row_group
File "pyarrow/_parquet.pyx", line 1644, in pyarrow._parquet.ParquetReader.read_row_groups
File "pyarrow/error.pxi", line 88, in pyarrow.lib.check_status
File "/usr/local/lib/python3.11/site-packages/smart_open/http.py", line 175, in read
bytes_read = self._read_buffer.fill(self._read_iter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/smart_open/bytebuffer.py", line 155, in fill
for more_bytes in source:
File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 822, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(138532099 bytes read, 47392669 more expected)', IncompleteRead(138532099 bytes read, 47392669 more expected))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/stream/default_file_based_stream.py", line 104, in read_records_from_slice
for record in parser.parse_records(self.config, file, self.stream_reader, self.logger, schema):
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/file_types/parquet_parser.py", line 85, in parse_records
raise RecordParseError(
airbyte_cdk.sources.file_based.exceptions.RecordParseError: Error parsing record. This could be due to a mismatch between the config's file type and the actual file type, or because the file or record is not parseable. Contact Support if you need assistance.
filename=
https://storage.googleapis.com/lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_coupon/2025_09_30_1759196666701_3.parquet?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=ll-gcs-snowflake-via-airbyte%40mpaanibackend.iam.gserviceaccount.com%2F20250930%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20250930T115617Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=197437e8bfdf58277edde73c6db9768db2b4c95b4bc000e69dc2c836ba37012bef042b76cfa0770ce4ccd091f54549d767ffd2e37b04de9b0a78275bfe80331f08abe908a045b75618e1e5bcfb7cbe0edc61e8c2c47da45200144d2fe58cd2f375c0ee1fcb8ba4282c04252d9a8c093fbb18084ca8cfab2844c79d217b7bc5f92cc590c8a76dc53053b1f8a1823da464539d265cf20f6afa5e7085879f27c5e1531a5ed83e382b23440e94d2409e22e2cfd4daea179b9c9b7bf97012b5bd3157297cfa36bf2020f7107a51a3dab28b2b9c7bbef82d5e7485fb31964c50876396a45eedfc1dc3517dc161f1ef6124da5867d45cd02c71cf00812d19d57e308fee lineno=row_group=1, line_no=19137482025-09-30 21
4126 source ERROR Error parsing record. This could be due to a mismatch between the config's file type and the actual file type, or because the file or record is not parseable. stream=db_coupon file=
https://storage.googleapis.com/lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_coupon/2025_09_30_1759196666701_3.parquet?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=ll-gcs-snowflake-via-airbyte%40mpaanibackend.iam.gserviceaccount.com%2F20250930%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20250930T115617Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=197437e8bfdf58277edde73c6db9768db2b4c95b4bc000e69dc2c836ba37012bef042b76cfa0770ce4ccd091f54549d767ffd2e37b04de9b0a78275bfe80331f08abe908a045b75618e1e5bcfb7cbe0edc61e8c2c47da45200144d2fe58cd2f375c0ee1fcb8ba4282c04252d9a8c093fbb18084ca8cfab2844c79d217b7bc5f92cc590c8a76dc53053b1f8a1823da464539d265cf20f6afa5e7085879f27c5e1531a5ed83e382b23440e94d2409e22e2cfd4daea179b9c9b7bf97012b5bd3157297cfa36bf2020f7107a51a3dab28b2b9c7bbef82d5e7485fb31964c50876396a45eedfc1dc3517dc161f1ef6124da5867d45cd02c71cf00812d19d57e308fee line_no=1913749 n_skipped=0
Stack Trace: Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 779, in _error_catcher
yield
File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 925, in _raw_read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
urllib3.exceptions.IncompleteRead: IncompleteRead(138532099 bytes read, 47392669 more expected)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 820, in generate
yield from self.raw.stream(chunk_size, decode_content=True)
File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 1091, in stream
data = self.read(amt=amt, decode_content=decode_content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 1008, in read
data = self._raw_read(amt)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 903, in _raw_read
with self._error_catcher():
File "/usr/local/lib/python3.11/contextlib.py", line 158, in
exit
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 803, in _error_catcher
raise ProtocolError(arg, e) from e
urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(138532099 bytes read, 47392669 more expected)', IncompleteRead(138532099 bytes read, 47392669 more expected))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/file_types/parquet_parser.py", line 74, in parse_records
batch = reader.read_row_group(row_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyarrow/parquet/core.py", line 468, in read_row_group
return self.reader.read_row_group(i, column_indices=column_indices,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow/_parquet.pyx", line 1608, in pyarrow._parquet.ParquetReader.read_row_group
File "pyarrow/_parquet.pyx", line 1644, in pyarrow._parquet.ParquetReader.read_row_groups
File "pyarrow/error.pxi", line 88, in pyarrow.lib.check_status
File "/usr/local/lib/python3.11/site-packages/smart_open/http.py", line 175, in read
bytes_read = self._read_buffer.fill(self._read_iter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/smart_open/bytebuffer.py", line 155, in fill
for more_bytes in source:
File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 822, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(138532099 bytes read, 47392669 more expected)', IncompleteRead(138532099 bytes read, 47392669 more expected))
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/stream/default_file_based_stream.py", line 104, in read_records_from_slice
for record in parser.parse_records(self.config, file, self.stream_reader, self.logger, schema):
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/file_types/parquet_parser.py", line 85, in parse_records
raise RecordParseError(
airbyte_cdk.sources.file_based.exceptions.RecordParseError: Error parsing record. This could be due to a mismatch between the config's file type and the actual file type, or because the file or record is not parseable. Contact Support if you need assistance.
filename=
https://storage.googleapis.com/lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_coupon/2025_09_30_1759196666701_3.parquet?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=ll-gcs-snowflake-via-airbyte%40mpaanibackend.iam.gserviceaccount.com%2F20250930%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20250930T115617Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=197437e8bfdf58277edde73c6db9768db2b4c95b4bc000e69dc2c836ba37012bef042b76cfa0770ce4ccd091f54549d767ffd2e37b04de9b0a78275bfe80331f08abe908a045b75618e1e5bcfb7cbe0edc61e8c2c47da45200144d2fe58cd2f375c0ee1fcb8ba4282c04252d9a8c093fbb18084ca8cfab2844c79d217b7bc5f92cc590c8a76dc53053b1f8a1823da464539d265cf20f6afa5e7085879f27c5e1531a5ed83e382b23440e94d2409e22e2cfd4daea179b9c9b7bf97012b5bd3157297cfa36bf2020f7107a51a3dab28b2b9c7bbef82d5e7485fb31964c50876396a45eedfc1dc3517dc161f1ef6124da5867d45cd02c71cf00812d19d57e308fee lineno=row_group=1, line_no=1913748