<@U04S8PLJWMT> how can I specify the schema of my ...
# ask-ai
t
@kapa.ai how can I specify the schema of my csv file using the sftp bulk community connector?
k
I'm sorry, but the knowledge sources provided do not contain explicit information about specifying a user-defined schema for CSV files when using the SFTP Bulk community connector. While other Airbyte file-based connectors (such as S3, Azure Blob Storage, Google Drive, etc.) allow you to provide a schema as a JSON map of column names to datatypes, there is no documentation or example confirming that this feature is available or supported for the SFTP Bulk connector. If you need schema enforcement or customization, you may want to check the connector's configuration options in the Airbyte UI or consult the latest official documentation or community forums for updates. If you have a specific use case, you could also consider opening a feature request or issue on the Airbyte GitHub repository.
t
@kapa.ai why cant I fork the google sheet source connector? when testing I am not able to test the connector that already works in the build
k
A message from kapa.ai
Based on the knowledge sources provided, there is no explicit documentation or discussion about forking the Google Sheets source connector or specific issues encountered when testing a forked version versus the official build. However, there are some related issues and troubleshooting steps that may be relevant: - Users have reported issues when running or testing the Google Sheets connector, such as schema validation errors, authentication problems, and network/DNS issues, but these are not directly related to forking the connector itself. For example, some users experienced connection test failures due to DNS or firewall issues, not because of the forked state of the connector [Source Google Sheets connection tests failed](https://discuss.airbyte.io/t/2626). - There are also reports of errors when the connector is run in certain environments or with specific configurations, but again, these are not tied to the act of forking the repository or modifying the connector code [Source Google Sheets - Connection to Google Sheets fails when google sheets has a Data Connector to Big Query](https://discuss.airbyte.io/t/2600). If you are able to build the connector but not test it, possible causes (based on general troubleshooting in the sources) could include: - Environment differences between your local/test setup and the official build (e.g., network, authentication, or Docker configuration). - Schema or configuration mismatches. - Issues with how the connector is registered or referenced in your Airbyte instance. However, the knowledge sources do not provide a direct answer or a known limitation regarding forking and testing the Google Sheets source connector. If you are encountering a specific error, providing the error message or logs may help narrow down the issue. For now, I recommend reviewing your environment setup and connector configuration, as these are common sources of issues according to the available documentation and forum discussions. If you need more targeted help, consider opening a discussion or issue on the Airbyte forums or GitHub with details about your fork and the errors you encounter.
t
@kapa.ai - any suggestions for testing forked connectors - I cannot get the test button to work even using CTRL+Enter
k
A message from kapa.ai
Here are reliable ways to test a forked connector locally: - Build your connector image with airbyte-ci, which is the preferred/CI-aligned path: - airbyte-ci connectors --name source-<source-name> build - This produces airbyte/source-<source-name>:dev locally ([Testing connectors](https://docs.airbyte.com/platform/connector-development/testing-connectors) and [Developing locally](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#connector-contributions)). - Load and use your local image in your Airbyte instance: - kind load docker-image airbyte/source-<source-name>:dev -n airbyte-abctl - In the UI: Settings → Sources/Destinations → set the version tag to dev → Change - This makes the UI run your forked image when you click Test/Check connection ([Developing locally](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#connector-contributions)). - Clear connector spec cache if you changed the spec: - In Settings, keep version at dev and click Change to refresh the spec ([Developing locally](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#connector-contributions)). - If the UI “Test” button still doesn’t work, run acceptance tests directly: - airbyte-ci connectors --name=<connector_name> test (runs the full CI-like suite) - Or debug locally with pytest: - cd airbyte-integrations/bases/connector-acceptance-test - poetry install - poetry run pytest -p connector_acceptance_test.plugin --acceptance-test-config=../../connectors/<your-connector> ([Acceptance tests reference setup](https://docs.airbyte.com/platform/1.7/connector-development/testing-connectors/connector-acceptance-tests-reference#setting-up-standard-acceptance-tests-for-your-connector), [Testing connectors](https://docs.airbyte.com/platform/connector-development/testing-connectors)). - Ensure you have acceptance-tests-config.yml and .secrets/config.json (for creds) in your connector when running tests locally ([Testing connectors](https://docs.airbyte.com/platform/connector-development/testing-connectors)). Tip: If you’re building with a custom Dockerfile instead of airbyte-ci, you can still test, but this path isn’t preferred for certified connectors; tag the image as :dev and follow the same “load + set version” steps in the UI ([Acceptance tests reference setup](https://docs.airbyte.com/platform/1.7/connector-development/testing-connectors/connector-acceptance-tests-reference#setting-up-standard-acceptance-tests-for-your-connector)).
A message from kapa.ai
Here are the supported ways to test a forked connector locally when the UI “Test” button doesn’t respond: - Build your forked connector image: - airbyte-ci connectors --name source-<source-name> build (produces airbyte/source-<source-name>:dev) ([Testing connectors](https://docs.airbyte.com/platform/connector-development/testing-connectors)). - Load the image into your local abctl Kind cluster: - kind load docker-image airbyte/source-<source-name>:dev -n airbyte-abctl ([Developing locally – Connector contributions](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#connector-contributions)). - Point your Airbyte UI to the local image: - In UI: Settings → Sources/Destinations → set version tag to dev → Change ([Developing locally – Connector contributions](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#connector-contributions)). - If you changed the spec, clicking Change with version at dev also refreshes the cached spec ([Connector Specification Caching](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#connector-specification-caching)). - If the UI “Test” still doesn’t trigger, run tests directly: - Full CI-like suite: airbyte-ci connectors --name=<connector_name> test ([Testing connectors](https://docs.airbyte.com/platform/connector-development/testing-connectors)). - Ensure you provide credentials at .secrets/config.json when running acceptance tests locally ([Testing connectors](https://docs.airbyte.com/platform/connector-development/testing-connectors)). Notes: - Verify abctl is healthy first: abctl local status ([Developing locally](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#connector-contributions)). - After loading a new image, re-open the connector form and re-click Change to ensure the dev image and spec are active ([Developing locally – Connector contributions](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#connector-contributions)).