:thread: Error with gcs to snowflake migration
# ask-ai
v
🧵 Error with gcs to snowflake migration
k
I'm sorry, but the knowledge sources provided do not contain enough specific information about errors encountered during a GCS (Google Cloud Storage) to Snowflake migration in Airbyte. The available documents discuss issues with the Snowflake destination and GCS destination connectors separately, including configuration errors, permission issues, and encryption key compatibility, but do not detail a direct migration process or common errors for GCS-to-Snowflake pipelines. If you can provide more details about the specific error message or scenario, I may be able to help further. Otherwise, based on the current sources, I cannot provide a confident answer to your question.
v
@kapa.ai I'm getting below stack trace while tryin got move data from gcs to snowflake where the data was obtained from mysql . 2025-10-07 115931 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_customerlocation file=https://storage.googleapis.com/lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_customerlocation/2025_10_02_1759403901284_0.parquet?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=ll-gcs-snowflake-via-airbyte%40mpaanibackend.iam.gserviceaccount.com%2F20251007%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20251007T061514Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=229a647479b0b50995ee8c746f842f7fd9bc48e6261da0a2db77ce1576f61b9ef50000b98c5aa1c7574c94b4caa7bbda34a69cd62399e214173647497e62ba98112906245b541ba9f3938cb02482376ffe98e4fc637469983c5934d4b85289ce33d1621ccd275c1e236426a7bd414f21829a57a65af876e58292137a15a5163600c2f971666619f3577e74f10ed4ce6220b935025bd1445e313cfcabd6eb323dc991a3dd8ea45140584a9d259249fc8966c5fd962c5fdda7cfb5856175e35613fa3cfd5f9e4ac8acf6ac0fe39ae47a8bfff383a1c2f2599c09d34e4678a23de870eafab291e78a74ba1d952534131a6aa6d9dc6ba543d5dd5d212aeb7524d31f line_no=1072831 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(143408784 bytes read, 67973665 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(143408784 bytes read, 67973665 more expected)', IncompleteRead(143408784 bytes read, 67973665 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(143408784 bytes read, 67973665 more expected)', IncompleteRead(143408784 bytes read, 67973665 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. 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(145235905 bytes read, 26854923 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(145235905 bytes read, 26854923 more expected)', IncompleteRead(145235905 bytes read, 26854923 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(145235905 bytes read, 26854923 more expected)', IncompleteRead(145235905 bytes read, 26854923 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_customerlocation/2025_10_02_1759403901284_1.parquet?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=ll-gcs-snowflake-via-airbyte%40mpaanibackend.iam.gserviceaccount.com%2F20251007%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20251007T061514Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=83dbe60bcb610476967af262313659d9350bf4dee44ef0af15b92c8c28f4e79e30438cba06351d0a8e070bf465756ed40235bb50ed3defaec15d14e3d8e1008bd6fc5b57a94c7748bbe7e1b3a424f72ca82220b5d332d071163d67b3f4ff5de653347073180cf7a647ea5d7ccda1e1b1eeaea35c1ef1d43ae453c5ce0f9bae265b5c06458e7cf1f55568f8651a19a02556ea94a7bde4aa4f38b52b0cbc03d2326e059df3a309388059a1e6b4a0f3f63954ef4269fce2e09630414e3db38b56f207095de20f01055a7d8982a5869bc9c092e8f7ff36471e063f8730894dd72416767dff2ab2bf6505471d295bdb9883466f34c36561bc4d28c22b1c927252bdcf lineno=row_group=1, line_no=998743 2025-10-07 115931 source ERROR Please check the logged errors for more information. Traceback (most recent call last): File "/usr/local/bin/source-gcs", line 6, in <module> sys.exit(run()) ^^^^^ File "/airbyte/integration_code/source_gcs/run.py", line 52, in run launch(source, sys.argv[1:]) File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/entrypoint.py", line 263, in launch for message in source_entrypoint.run(parsed_args): File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/entrypoint.py", line 133, in run yield from map(AirbyteEntrypoint.airbyte_message_to_string, self.read(source_spec, config, config_catalog, state)) File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/entrypoint.py", line 191, in read for message in self.source.read(self.logger, config, catalog, state): File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/file_based_source.py", line 271, in read yield from self.errors_collector.yield_and_raise_collected() File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/exceptions.py", line 59, in yield_and_raise_collected raise AirbyteTracedException( airbyte_cdk.utils.traced_exception.AirbyteTracedException:
k
A message from kapa.ai
Based on the stack trace and error messages you provided, the root cause of your issue appears to be a network or file integrity problem when reading Parquet files from Google Cloud Storage (GCS) during your Airbyte sync to Snowflake. The key error is:
Copy code
IncompleteRead(143408784 bytes read, 67973665 more expected) ... requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(... bytes read, ... more expected)', IncompleteRead(...))
This error indicates that the file download from GCS was interrupted or incomplete, resulting in Airbyte being unable to fully read the Parquet file. This is not a schema or data type mismatch, but rather a problem with reading the file from the remote storage. Possible causes and next steps: 1. Network Instability or Timeout: The connection to GCS may have been interrupted, causing an incomplete file read. This can happen due to network issues, timeouts, or temporary GCS service disruptions. 2. File Corruption or Incomplete Upload: The Parquet file in GCS might be corrupted or was not fully uploaded. Try re-uploading the file and ensure the upload completes successfully. 3. Large File Size: If the file is very large, consider splitting it into smaller chunks to reduce the risk of incomplete reads. 4. Retry the Sync: Sometimes, simply retrying the sync can resolve transient network issues. 5. Check Airbyte and Connector Versions: Ensure you are using the latest versions of Airbyte and the GCS source connector, as improvements and bug fixes are released regularly. 6. No Evidence of Schema Mismatch: The error message does mention "mismatch between the config's file type and the actual file type," but the stack trace and context point to a file read/network issue, not a schema or type problem. Relevant Airbyte Documentation: - Airbyte's file-based sources (including GCS) support Parquet files, but network reliability is crucial for large file transfers. There are no specific troubleshooting steps for this exact error in the provided documentation, but the general process for reading Parquet files from GCS is described here: [GCS Source Supported Streams](https://docs.airbyte.com/integrations/sources/gcs#supported-streams). Summary: Your error is most likely due to an incomplete or interrupted file download from GCS, not a data or schema issue. Check your network, file integrity, and consider retrying or splitting large files. If the problem persists, you may want to reach out to Airbyte support or check for known issues with the GCS connector. If you need more targeted troubleshooting, please provide additional details about your Airbyte and connector versions, file sizes, and network environment.
v
@kapa.ai Getting below error for gcs to snowflake sync : 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_customerlocation/2025_10_08_1759905443002_1.parquet?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=ll-gcs-snowflake-via-airbyte%40mpaanibackend.iam.gserviceaccount.com%2F20251008%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20251008T064951Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=7d06ec8ad1cb54f62a152d66fc65d2d29071a989c124156b3ecfd4b58a1d96fc1632a1b845dd9f866359d737887333759f45573b5d04507dd85d8ecb3640d3a55e4b2a105f70f3c26dd10aef20f4cf28fa9c68e97df6f51166bb23249a155c97fb238b0d487404754916577c64914b848e24595d0b557a88f5f9e18f7ad4401b0441af5753c515c35afc5542b2299c593bc91ab353a258403b86ce6029fbf7a133f6eb1b828e513a301c5dc19f308494e85e71aed7a3ae5c559637182a659a8b83ad9e87435bdb5f0cd97cfee1f488453cde807a72b69c1623c4b7679a6c08aa7d433055d74cf23fc65b187bb243ab90e9e5e17e8672bce98ed659880badc651 lineno=row_group=1, line_no=998743 2025-10-08 123246 source ERROR Please check the logged errors for more information. Traceback (most recent call last): File "/usr/local/bin/source-gcs", line 6, in <module> sys.exit(run())
k
A message from kapa.ai
The error message you are seeing during your GCS to Snowflake sync:
Copy code
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.
indicates that Airbyte encountered a problem parsing a record from your Parquet file. According to the knowledge sources, this type of error can be caused by: 1. File Type Mismatch: The file may not actually be a Parquet file, or it may be corrupted or incomplete. Airbyte expects the file format to match the configuration exactly. If, for example, a CSV or JSON file is mislabeled as Parquet, or if the file is only partially uploaded, this error can occur. 2. File Corruption or Incomplete Read: There are known issues where incomplete or interrupted downloads from cloud storage (like GCS) can cause parsing errors. For example, if the file was not fully uploaded or the network connection was interrupted during reading, Airbyte will not be able to parse the file and will throw a similar error. This is supported by other errors in your previous logs, such as
IncompleteRead
and `ChunkedEncodingError`[source](https://discuss.airbyte.io/t/1829). 3. Schema or Data Issues: If the Parquet file contains unexpected or unsupported data types, or if there are null values in fields that are not nullable, parsing can fail. There are also known issues with Airbyte's handling of certain Parquet edge cases, such as
NoneType
values in timestamp fields, which can cause the sync to fail if not handled properly [source](https://github.com/airbytehq/airbyte/issues/34151). What you can do: - Double-check that the file in GCS is a valid, fully uploaded Parquet file. - Try downloading the file and opening it locally with a tool like Apache Parquet Tools or Python's pyarrow to verify its integrity. - Ensure that the schema of the Parquet file matches what Airbyte expects. - If the file is very large, consider splitting it into smaller files to reduce the risk of incomplete reads. - Retry the sync, as sometimes network issues are transient. If the problem persists after these checks, it may be a bug or limitation in the current Airbyte connector, especially if you are using complex or edge-case data types in your Parquet files [source](https://github.com/airbytehq/airbyte/issues/34151). If you need further help, providing a sample of the problematic file and the exact connector versions may help the Airbyte community or support team diagnose the issue more precisely.
v
@kapa.ai What does airbyte uses internally to read parquet files ?
k
A message from kapa.ai
Airbyte uses Python libraries such as pyarrow and, as of version 0.5.1 of the File source connector, also supports the fastparquet engine to read Parquet files. This is configurable in the connector, and these libraries are responsible for parsing and processing Parquet data during syncs. The use of pyarrow is evident in the stack traces and error logs, and the changelog explicitly mentions the addition of fastparquet support: > 0.5.1 2024-05-03 Add fastparquet engine for parquet file reader. [Source: File Source Changelog](https://docs.airbyte.com/integrations/sources/file#changelog) So, by default, Airbyte relies on pyarrow, but fastparquet can also be used for reading Parquet files in the File source connector.
v
@kapa.ai The error I'm getting , could it be because Airbyte is using fastparquet internally ? Because look at below : I tried reading the same parquet file using pyarrow , and it is working fine . But when I try below code with fastparquet: # Using fastparquet import pandas as pd file = "/Users/lovelocal/Downloads/ll_bronze_layer_mysql_homedelivery_db_customerlocation_2025_10_08_1759905443002_1.parquet" df = pd.read_parquet(file, engine='fastparquet') print(df.shape) I get error : --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[31], line 7 3 import pandas as pd 5 file = "/Users/lovelocal/Downloads/ll_bronze_layer_mysql_homedelivery_db_customerlocation_2025_10_08_1759905443002_1.parquet" ----> 7 df = pd.read_parquet(file, engine='fastparquet') 8 print(df.shape) File ~/Downloads/Queries/.venv/lib/python3.13/site-packages/pandas/io/parquet.py:669, in read_parquet(path, engine, columns, storage_options, use_nullable_dtypes, dtype_backend, filesystem, filters, **kwargs) 666 use_nullable_dtypes = False 667 check_dtype_backend(dtype_backend) --> 669 return impl.read( 670 path, 671 columns=columns, 672 filters=filters, 673 storage_options=storage_options, 674 use_nullable_dtypes=use_nullable_dtypes, 675 dtype_backend=dtype_backend, 676 filesystem=filesystem, 677 **kwargs, 678 ) File ~/Downloads/Queries/.venv/lib/python3.13/site-packages/pandas/io/parquet.py:405, in FastParquetImpl.read(self, path, columns, filters, storage_options, filesystem, **kwargs) 403 try: 404 parquet_file = self.api.ParquetFile(path, **parquet_kwargs) --> 405 return parquet_file.to_pandas(columns=columns, filters=filters, **kwargs) 406 finally: 407 if handles is not None: File ~/Downloads/Queries/.venv/lib/python3.13/site-packages/fastparquet/api.py:790, in ParquetFile.to_pandas(self, columns, categories, filters, index, row_filter, dtypes) 786 continue 787 parts = {name: (v if name.endswith('-catdef') 788 else v[start:start + thislen]) 789 for (name, v) in views.items()} --> 790 self.read_row_group_file(rg, columns, categories, index, 791 assign=parts, partition_meta=self.partition_meta, 792 row_filter=sel, infile=infile) 793 start += thislen 794 return df File ~/Downloads/Queries/.venv/lib/python3.13/site-packages/fastparquet/api.py:388, in ParquetFile.read_row_group_file(self, rg, columns, categories, index, assign, partition_meta, row_filter, infile) 385 ret = True 386 f = infile or self.open(fn, mode='rb') --> 388 core.read_row_group( 389 f, rg, columns, categories, self.schema, self.cats, 390 selfmade=self.selfmade, index=index, 391 assign=assign, scheme=self.file_scheme, partition_meta=partition_meta, 392 row_filter=row_filter 393 ) 394 if ret: 395 return df File ~/Downloads/Queries/.venv/lib/python3.13/site-packages/fastparquet/core.py:644, in read_row_group(file, rg, columns, categories, schema_helper, cats, selfmade, index, assign, scheme, partition_meta, row_filter) 642 if assign is None: 643 raise RuntimeError('Going with pre-allocation!') --> 644 read_row_group_arrays(file, rg, columns, categories, schema_helper, 645 cats, selfmade, assign=assign, row_filter=row_filter) 647 for cat in cats: 648 if cat not in assign: 649 # do no need to have partition columns in output File ~/Downloads/Queries/.venv/lib/python3.13/site-packages/fastparquet/core.py:615, in read_row_group_arrays(file, rg, columns, categories, schema_helper, cats, selfmade, assign, row_filter) 612 continue 613 remains.discard(name) --> 615 read_col(column, schema_helper, file, use_cat=name+'-catdef' in out, 616 selfmade=selfmade, assign=out[name], 617 catdef=out.get(name+'-catdef', None), 618 row_filter=row_filter) 620 if _is_map_like(schema_helper, column): 621 # TODO: could be done in fast loop in _assemble_objects? 622 if name not in maps: File ~/Downloads/Queries/.venv/lib/python3.13/site-packages/fastparquet/core.py:561, in read_col(column, schema_helper, infile, use_cat, selfmade, assign, catdef, row_filter) 559 part = part._data 560 elif part.dtype.kind != "O": --> 561 part[defi != max_defi] = my_nan 562 if d and not use_cat: 563 part[defi == max_defi] = dic[val] TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NAType' Could this be the issue ?
k
A message from kapa.ai
Yes, your suspicion is valid. Airbyte's File source connector added support for the fastparquet engine for reading Parquet files starting from version 0.5.1: > 0.5.1 2024-05-03 Add fastparquet engine for parquet file reader. [File Source Changelog](https://docs.airbyte.com/integrations/sources/file#changelog) If your Airbyte deployment is using a version with fastparquet enabled, and your file can be read with pyarrow but fails with fastparquet (as in your test), it is very likely that Airbyte is encountering the same incompatibility or bug in fastparquet that you observed locally. This means the error you are seeing in Airbyte could indeed be due to fastparquet's handling of certain data types or null values in your Parquet file, which pyarrow handles without issue. If possible, you may want to configure Airbyte to use pyarrow instead of fastparquet, or ensure your connector version predates the fastparquet addition, as a workaround until the compatibility issue is resolved. If you need to control which engine Airbyte uses, check the connector's configuration options or consult the latest documentation for any parameters related to the Parquet engine selection. If such an option is not available, you may need to open an issue with the Airbyte team or contribute a fix. In summary: Yes, the issue could be caused by Airbyte using fastparquet internally, as your local test demonstrates a failure with fastparquet but not with pyarrow.
v
@kapa.ai So instead of using gcs as a source , I'm trying to setup file as the source . When giving url : gs://lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_customerlocation/ I get error : Configuration check failed Failed to load gs://lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_customerlocation/. You could have provided an invalid URL, please verify it: FileNotFoundError('lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_customerlocation/').
k
A message from kapa.ai
When using the File source connector in Airbyte to read files from Google Cloud Storage (GCS), you should not use the
gs://
URL format directly. Instead, you need to: 1. Select "GCS" as the Storage Provider in the connector setup. 2. Provide the Service Account JSON if accessing a private bucket. 3. For the URL field, you should specify the full path to the file, not just the directory, and use the correct format supported by the connector. According to the documentation, the File source connector supports GCS, but the URL should point to a specific file, not a folder. For example:
Copy code
gs://lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_customerlocation/your_file.parquet
or
Copy code
gs://bucket-name/path/to/file.csv
If you want to read multiple files, the File source connector does not support wildcards or folder-level URLs for GCS; you must specify each file individually. There is an open feature request for wildcard support, but it is not currently available [Support wildcard expression to load multiple files from GCS](https://github.com/airbytehq/airbyte/issues/2512). Summary: - The error occurs because you provided a directory path, not a file path. - The File source connector expects a file URL, not a folder, and does not support wildcards for GCS. - To sync multiple files, you must add each file as a separate stream or use the GCS source connector, which supports globs for pattern matching files in a bucket [GCS Source Setup](https://docs.airbyte.com/integrations/sources/gcs#for-airbyte-open-source). If you need to sync all files in a folder, consider using the GCS source connector instead, which supports globs and path patterns for selecting multiple files.
v
@kapa.ai Got below error for my mysql to gcs sync : Failure in source: MySQL Connector Error: The sync encountered an unexpected error in the change event producer and has stopped. Please check the logs for details and troubleshoot accordingly. https://docs.oracle.com/javase/9/docs/api/java/lang/RuntimeException.html
k
A message from kapa.ai
The error message you received for your MySQL to GCS sync: > Failure in source: MySQL Connector Error: The sync encountered an unexpected error in the change event producer and has stopped. Please check the logs for details and troubleshoot accordingly. is a generic error indicating that the MySQL connector (likely using Debezium for CDC) encountered an issue while processing change events. This type of error is often accompanied by more specific details in the logs. Based on the knowledge sources, similar errors have been observed when there are issues with binlog processing, deserialization errors, or schema mismatches. For example, errors like
io.debezium.DebeziumException: Error processing binlog event
or deserialization failures can cause the connector to stop and produce a similar message. These issues can be due to: - Corrupted or missing binlog events. - Schema changes in the source database that are not reflected in the connector's schema history. - Incompatibilities or bugs in the connector or its dependencies. Recommended actions: 1. Check the Airbyte logs for the sync job to find the specific error message that caused the failure. The generic error is a wrapper for a more detailed exception. 2. Look for errors related to binlog processing, schema changes, or deserialization in the logs. For example, errors like "Failed to deserialize data of EventHeaderV4" or "Encountered change event for table whose schema isn't known to this connector" are common root causes in similar cases [Source MySQL: Encountered change event for table whose schema isn't known to this connector](https://github.com/airbytehq/airbyte/issues/28150), [MySQL CDC Issue - Debezium error](https://github.com/airbytehq/airbyte/issues/51607). 3. If you find errors about unknown tables or schema mismatches, try refreshing the schema or resetting the connection as suggested in the logs and issues. 4. If the error is related to binlog retention or missing binlogs, ensure your MySQL server is configured to retain binlogs long enough for Airbyte to process them, as described in the troubleshooting documentation [Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting). If you provide the specific error details from the logs, I can help you further narrow down the root cause and suggest a more targeted solution.
v
@kapa.ai This is detailed error : 2025-10-09 000140 source ERROR org.apache.kafka.connect.errors.ConnectException: An exception occurred in the change event producer. This connector will be stopped. 2025-10-09 000140 source ERROR at io.debezium.pipeline.ErrorHandler.setProducerThrowable(ErrorHandler.java:67) 2025-10-09 000140 source ERROR at io.debezium.connector.binlog.BinlogStreamingChangeEventSource$ReaderThreadLifecycleListener.onCommunicationFailure(BinlogStreamingChangeEventSource.java:1252) 2025-10-09 000140 source ERROR at com.github.shyiko.mysql.binlog.BinaryLogClient.listenForEventPackets(BinaryLogClient.java:1110) 2025-10-09 000140 source ERROR at com.github.shyiko.mysql.binlog.BinaryLogClient.connect(BinaryLogClient.java:657) 2025-10-09 000140 source ERROR at com.github.shyiko.mysql.binlog.BinaryLogClient$7.run(BinaryLogClient.java:959) 2025-10-09 000140 source ERROR at java.base/java.lang.Thread.run(Thread.java:1583) 2025-10-09 000140 source ERROR Caused by: io.debezium.DebeziumException: A slave with the same server_uuid/server_id as this slave has connected to the master; the first event '' at 4, the last event read from '/mysql/binlog/mysql-bin.027139' at 102675642, the last byte read from '/mysql/binlog/mysql-bin.027139' at 102675642. Error code: 1236; SQLSTATE: HY000. 2025-10-09 000140 source ERROR at io.debezium.connector.binlog.BinlogStreamingChangeEventSource.wrap(BinlogStreamingChangeEventSource.java:1206) 2025-10-09 000140 source ERROR ... 5 more 2025-10-09 000140 source ERROR Caused by: com.github.shyiko.mysql.binlog.network.ServerException: A slave with the same server_uuid/server_id as this slave has connected to the master; the first event '' at 4, the last event read from '/mysql/binlog/mysql-bin.027139' at 102675642, the last byte read from '/mysql/binlog/mysql-bin.027139' at 102675642. 2025-10-09 000140 source ERROR at com.github.shyiko.mysql.binlog.BinaryLogClient.listenForEventPackets(BinaryLogClient.java:1074) 2025-10-09 000140 source ERROR ... 3 more
k
A message from kapa.ai
The detailed error you are seeing:
Copy code
A slave with the same server_uuid/server_id as this slave has connected to the master; the first event '' at 4, the last event read from '/mysql/binlog/mysql-bin.027139' at 102675642, the last byte read from '/mysql/binlog/mysql-bin.027139' at 102675642. Error code: 1236; SQLSTATE: HY000.
indicates that two MySQL replication clients (slaves) are connecting to the master with the same
server_id
or
server_uuid
. MySQL requires each replication client to have a unique
server_id
(and, for GTID-based replication, a unique
server_uuid
). If two clients use the same ID, the master will disconnect one of them, causing the error you see. This is a MySQL-level replication error and is not specific to Airbyte, but it does affect Airbyte's CDC (Change Data Capture) syncs, which use MySQL's replication protocol. How to resolve: - Ensure that each Airbyte MySQL source connection (and any other MySQL replication clients) uses a unique
server_id
in the connection configuration. - If you are running multiple Airbyte syncs or other tools that connect to the same MySQL instance for CDC, make sure they do not share the same
server_id
. This issue is not directly addressed in the Airbyte documentation or issues provided, but it is a well-known MySQL replication requirement and is consistent with the error message and stack trace you shared. If you need to set the
server_id
in Airbyte, check your MySQL source connector configuration for an option to specify it, or ensure that each connector instance generates a unique one. If you need more details on how to set this in Airbyte, please provide your connector configuration or version, as the knowledge sources do not contain explicit instructions for this setting.
v
@kapa.ai What is the difference between airbyte emitted at and airbyte extracted at ?
k
A message from kapa.ai
The difference between _airbyte_emitted_at and _airbyte_extracted_at is primarily a matter of naming, depending on the version of Airbyte and the destination connector you are using: - _airbyte_emitted_at: This field was used in earlier versions of Airbyte and indicates the timestamp when Airbyte sent (emitted) the record to the destination. - _airbyte_extracted_at: In Destinations V2 and newer versions, this field replaces _airbyte_emitted_at and serves the same purpose—it records the timestamp when Airbyte pulled (extracted) the event from the data source. > "_airbyte_emitted_at_ and _airbyte_extracted_at are exactly the same, only the column name changed. You can replace all instances of _airbyte_emitted_at with _airbyte_extracted_at._" [Upgrading to Destinations V2: Updating Downstream Transformations](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2#updating-downstream-transformations) So, **there is no difference in meaning or function**—the field was simply renamed for clarity in newer Airbyte versions.