This message was deleted.
# ask-ai
s
This message was deleted.
k
Short answer: use field selection on the connection and ensure your setup supports it. Airbyte will still read all fields from the source but will only write the selected fields to the destination, as long as field selection is enabled and supported. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields); [Select Fields 1.7](https://docs.airbyte.com/platform/1.7/using-airbyte/configuring-schema#select-fields)] Key points and checks: - Field selection only works for top‑level fields. Nested fields can’t be deselected. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields)] - You cannot deselect required fields like the cursor or primary key when your sync mode requires them. In your config you’re using full_refresh/overwrite with no cursor/PK, so this constraint doesn’t apply. [[Select Fields 1.7](https://docs.airbyte.com/platform/1.7/using-airbyte/configuring-schema#select-fields)] - In the UI: toggle on field selection for the stream, pick only the fields you want, then Save changes and Save connection. A refresh may be required to cleanly apply changes. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields)] Caveats from known issues: - Some past OSS deployments had problems applying column selection to certain destinations (notably S3). If you’re seeing all fields arrive despite selectedFields, update to the latest Airbyte and re‑test; this was addressed in later releases. [[S3 selected_fields issue](https://github.com/airbytehq/airbyte/issues/60878)] - When a stream is incremental, any cursor field generally must remain selected. If you later switch to incremental, include the cursor in selectedFields. [[Configured stream](https://docs.airbyte.com/platform/understanding-airbyte/airbyte-protocol#configuredairbytestream)] Given your posted syncCatalog, you already have: - config.fieldSelectionEnabled: true - config.selectedFields: [list of top‑level columns] - syncMode: full_refresh, destinationSyncMode: overwrite If you still get all columns in the destination: 1. Refresh the stream (or Clear data if the destination doesn’t support refresh) and run a new sync. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields)] 2. Upgrade Airbyte and re‑deploy the destination (especially if it’s S3). [[S3 selected_fields issue](https://github.com/airbytehq/airbyte/issues/60878)] 3. Ensure you’re not colliding with another connection writing to the same destination stream name/namespace. [[Stream uniqueness](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#modify-stream-names)] If you need step‑by‑step UI instructions to select fields, follow the “Select Fields” section in the docs. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields)]
h
@kapa.ai { "connectionId": "03f9c218-995c-4774-9026-8750a3582fbc", "syncCatalog": { "streams": [ { "stream": { "name": "Sheet1", "jsonSchema": { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "Datasource": { "type": "string" } } }, "supportedSyncModes": ["full_refresh"], "defaultCursorField": [], "sourceDefinedPrimaryKey": [] }, "config": { "selected": true, "aliasName": "Sheet1", "syncMode": "full_refresh", "destinationSyncMode": "overwrite", "primaryKey": [], "cursorField": [], "fieldSelectionEnabled": true, "selectedFields": [ { "fieldPath": ["Datasource"] } ] } } ] }, "scheduleType": "basic", "scheduleData": { "basicSchedule": { "timeUnit": "hours", "units": 24 } }, "status": "active", "operations": [ { "workspaceId": "c82afd05-d915-44a8-b7d7-1234f2147eb3", "operationId": "1cf72100-ef2d-4842-aee5-cbb67d16037b", "name": "Normalization", "operatorConfiguration": { "operatorType": "normalization", "normalization": { "option": "basic" } } } ], "sourceCatalogId": "6ea7a3cc-0381-4ed7-92d9-59f28cfad584", "nonBreakingChangesPreference": "ignore", "geography": "auto", "skipReset": false } i' selected only one field, still in UI it is showing all fields
k
A message from kapa.ai
Short answer: this can be expected. Airbyte may still display all detected fields in the UI and read them from the source, but when field selection is enabled it should only write your selected fields (Datasource) to the destination. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields)] Checks and steps: - Confirm “fieldSelectionEnabled: true” and only the desired fields are selected, then Save changes and Save connection. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields)] - Run a Refresh on the stream (or Clear if your destination doesn’t support refresh) so past data doesn’t persist, then sync again. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields); [Per‑stream actions](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/review-connection-status#per-stream-actions)] - Note: you can’t deselect required cursor/PK fields in incremental modes, but your config is full_refresh/overwrite, so that’s fine. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields)] If you still see all columns in the destination (not just in the UI): - There was a past OSS issue where S3 ignored selected_fields; update to the latest Airbyte and retest. [[destination-s3 issue](https://github.com/airbytehq/airbyte/issues/60878)] - Ensure no other connection writes to the same destination stream/namespace, which could make it look like all fields are present. [[Stream uniqueness](https://docs.airbyte.com/platform/using-airbyte/configuring-schema)] Field selection currently applies only to top‑level fields; nested fields can’t be deselected. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields)]
h
@kapa.ai { "name": "FED", "connectionId": "03f9c218-995c-4774-9026-8750a3582fbc", "namespaceDefinition": "customformat", "namespaceFormat": "RefreshSchena", "prefix": "", "syncCatalog": { "streams": [ { "config": { "syncMode": "full_refresh", "cursorField": [], "destinationSyncMode": "append", "primaryKey": [], "aliasName": "Sheet1", "fieldSelectionEnabled": true, "selected": true, "suggested": true, "selectedFields": [ { "fieldPath": ["Datasource"] }, { "fieldPath": ["NP_IO_Table_Name"] }, { "fieldPath": ["NP_IO_Field_Name"] }, { "fieldPath": ["custas"] } ] }, "stream": { "name": "Sheet1", "jsonSchema": { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "Datasource": { "type": "string" }, "Datasource Master Schema - Field Name": { "type": "string" }, "NP_IO_Table_Name": { "type": "string" }, "NP_IO_Field_Name": { "type": "string" }, "DS": { "type": "string" }, "Schema Name": { "type": "string" }, "Syncmode": { "type": "string" }, "ASD": { "type": "string" }, "custas": { "type": "string" }, "Group [NP OBJECT]": { "type": "string" }, "Sourcename": { "type": "string" }, "DFGH": { "type": "string" }, "Datasource Master Schema - Table Name": { "type": "string" }, "QWERT": { "type": "string" } } }, "supportedSyncModes": ["full_refresh"], "defaultCursorField": [], "sourceDefinedPrimaryKey": [] } } ] }, "scheduleData": { "basicSchedule": { "timeUnit": "hours", "units": 24 } }, "scheduleType": "basic", "status": "active", "operations": [ { "workspaceId": "c82afd05-d915-44a8-b7d7-1234f2147eb3", "operationId": "1cf72100-ef2d-4842-aee5-cbb67d16037b", "name": "Normalization", "operatorConfiguration": { "operatorType": "normalization", "normalization": { "option": "basic" } } } ], "sourceCatalogId": "fd690a0f-827b-44c9-82c6-c5d6879632f9", "nonBreakingChangesPreference": "ignore", "geography": "auto", "skipReset": true } i'm using seleted fields also getting 200 response, but in airbyte UI it is showing all fields
k
A message from kapa.ai
Two clarifications: - The UI will list all detected fields in the stream schema even when field selection is enabled; field selection controls what is written to the destination, not what the UI displays or what the source reads. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields)] - To ensure only the selected fields land in the destination, you must: - Keep fieldSelectionEnabled: true and selectedFields set as you have. - Save changes and Save connection. - Run a Refresh (or Clear if your destination doesn’t support refresh), then run a new sync. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields)] If you still see all columns in the destination after a refresh/sync: - This was previously an issue in some OSS setups (notably with S3). Update Airbyte and retry. [[destination-s3 issue](https://github.com/airbytehq/airbyte/issues/60878)] - Ensure no other connection writes to the same destination stream/namespace, which can make it look like all fields are present. [[Stream uniqueness](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#configuring-schemas)]
h
but during auto sync, all fields will get synced to destination @kapa.ai
k
A message from kapa.ai
Short answer: no—if field selection is enabled and configured, Airbyte should only write the selected fields to the destination, even during scheduled (auto) syncs. Airbyte may still read all fields from the source and show them in the UI, but only the selected fields are written. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields); [Select Fields 1.7](https://docs.airbyte.com/platform/1.7/using-airbyte/configuring-schema#select-fields)] Notes: - You cannot deselect required cursor/PK fields for incremental modes; in full_refresh this doesn’t apply. [[Select Fields](https://docs.airbyte.com/platform/using-airbyte/configuring-schema#select-fields)] - If you observe all fields still landing in the destination after enabling selection, update Airbyte and retry—there were past OSS issues (notably with S3) where selected_fields wasn’t applied. [[destination-s3 issue](https://github.com/airbytehq/airbyte/issues/60878)]