hiwot tadese
09/30/2025, 11:28 AMkapa.ai
09/30/2025, 11:29 AM** to remove all fields with a certain name at any nesting level, or * to match field prefixes at the top level. This is helpful for broad or targeted data cleaning tasks before loading into your warehouse [Transformations](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/record-processing#transformations). ### 2. Custom Transformations with Python If built-in transformations are not sufficient, you can implement custom Python classes (Custom Components) to perform specialized logic, such as: - Decoding fields (e.g., base64 to UTF-8) - Normalizing or enriching data - Handling complex API behaviors Custom Components are Python dataclasses that implement specific Airbyte CDK interfaces. You can override built-in components or add new logic, giving you full control over the transformation process while still leveraging the Connector Builder framework [Custom Components](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/custom-components). ### 3. Advanced Use Cases Custom transformations are especially powerful for: - Handling edge cases not covered by standard components - Extending functionality beyond declarative configuration - Iterative development, where you only customize the parts you need Example: A custom transformation could decode a base64-encoded field in each record using a Python class, as described in the GitHub issue for decoding an "xml" field [Github Issue](https://github.com/airbytehq/airbyte/issues/26423). --- In summary, under "transformation" in the custom builder, you can remove or pseudonymize fields declaratively, or implement complex, custom logic using Python classes to handle any transformation your use case requires.hiwot tadese
09/30/2025, 11:30 AMkapa.ai
09/30/2025, 11:30 AMkapa.ai
09/30/2025, 11:30 AMjson { "id": "123", "name": "John Doe", "email": "john@example.com", "content": { "html": "<html>...</html>", "plain_text": "..." } } If you want to remove the entire content field (perhaps because it’s large and not needed), you can add a transformation of type remove in the Connector Builder UI and set the path to content. The resulting record will look like: json { "id": "123", "name": "John Doe", "email": "john@example.com" } You can also use glob patterns. For example, setting the path to **, name will remove all name fields at any nesting level in the record. This is useful for broad data cleaning or anonymization tasks. [See more details and examples in the documentation](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/record-processing#transformations). --- ### Example 2: Custom Python Transformation (Custom Component) If you need more advanced logic, such as decoding a base64-encoded field, you can implement a custom Python class. For example, to decode an xml field from base64 to UTF-8: python import base64 from dataclasses import dataclass from airbyte_cdk.sources.declarative.transformations import RecordTransformation @dataclass class ArquiveiCustomTransformation(RecordTransformation): def transform(self, record, config=None, stream_state=None, stream_slice=None): record["xml"] = base64.b64decode(record["xml"]).decode("utf-8") return record This custom component can be used in your connector to transform each record as needed before it is sent to the destination. [Read more about custom components and their power here](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/custom-components). --- Summary: - Use the built-in "remove" transformation for simple field removal or anonymization. - Use custom Python components for advanced transformations, such as decoding, normalization, or enrichment. If you need a specific example for your use case, let me know!hiwot tadese
09/30/2025, 11:37 AM{
"headers": [
{
"name": "dx",
"column": "Data",
"valueType": "TEXT",
"type": "java.lang.String",
"hidden": false,
"meta": true
},
{
"name": "pe",
"column": "Period",
"valueType": "TEXT",
"type": "java.lang.String",
"hidden": false,
"meta": true
},
{
"name": "ou",
"column": "Organisation unit",
"valueType": "TEXT",
"type": "java.lang.String",
"hidden": false,
"meta": true
},
{
"name": "value",
"column": "Value",
"valueType": "NUMBER",
"type": "java.lang.Double",
"hidden": false,
"meta": false
}
],
"metaData": {
"items": {
"201701": {
"name": "Meskerem 2017"
},
"201702": {
"name": "Tikemet 2017"
},
"201703": {
"name": "Hidar 2017"
},
"dx": {
"name": "Data"
},
"pe": {
"name": "Period"
},
"aHQxr6jUXJ7": {
"name": "Guguftu Health Post_Closed"
},
"ou": {
"name": "Organisation unit"
},
"uZ7W7fosr5K": {
"name": "TB_Treatment Success rate (TSR) among all forms of TB cases"
}
},
"dimensions": {
"dx": [
"uZ7W7fosr5K"
],
"pe": [
"201701",
"201702",
"201703"
],
"ou": [
"aHQxr6jUXJ7"
]
}
},
"height": 0,
"headerWidth": 4,
"width": 0
}
but i coulsnt remove fields with the following config
transformations:
- type: RemoveFields
field_pointers:
- - headers
- height
- headerWidth
- width
how can i fix itkapa.ai
09/30/2025, 11:37 AMkapa.ai
09/30/2025, 11:37 AMfield_pointers in the RemoveFields transformation. To remove top-level fields like headers, height, headerWidth, and width, each field should be specified as a separate array containing just the field name. For example: yaml transformations: - type: RemoveFields field_pointers: - [ "headers" ] - [ "height" ] - [ "headerWidth" ] - [ "width" ] Each entry in field_pointers should be an array representing the path to the field you want to remove. For top-level fields, this is just a single-element array with the field name. If you want to remove nested fields, you would specify the full path as an array of keys. Example from the documentation: yaml transformations: - type: RemoveFields field_pointers: - [ "path", "to", "field1" ] - [ "path2" ] This removes field1 from within path.to and removes path2 from the top level of the record [Record selector - Transformations](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/record-selector#transformations). Summary: Update your config as shown above, and it should correctly remove the specified top-level fields from your records. If you need to remove nested fields, specify the full path as an array. If you want to remove all fields with a certain name at any level, you can use glob patterns in the Connector Builder UI as described in the documentation [Record processing - Transformations](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/record-processing#transformations).hiwot tadese
09/30/2025, 11:46 AMkapa.ai
09/30/2025, 11:46 AMkapa.ai
09/30/2025, 11:46 AMnull, {}, or []. There is a related issue where users observed that NULL values are omitted in records generated by custom connectors, but no solution or workaround is provided in the available documentation or issues. The issue was marked stale and closed without a resolution, and no official guidance is present on how to force Airbyte to retain such fields in the output records or schema [source](https://github.com/airbytehq/airbyte/issues/36061). If this behavior is critical for your use case, you may want to open a new issue on the Airbyte GitHub repository or discuss it in the Airbyte community forums to get the latest recommendations or feature updates.hiwot tadese
09/30/2025, 11:48 AMkapa.ai
09/30/2025, 11:48 AMkapa.ai
09/30/2025, 11:49 AMnull, {}, or []. This is a known issue reported by users, where NULL values or empty objects/arrays are omitted in the output records generated by custom connectors, and there is no documented workaround or setting to change this behavior in the current Airbyte documentation or GitHub issues. The related GitHub issue was closed without a resolution, and no official fix or configuration is described in the available sources [Github Issue](https://github.com/airbytehq/airbyte/issues/36061). If this behavior is critical for your use case, you may consider raising a new issue on the Airbyte GitHub repository or reaching out to the Airbyte community for further assistance.