Rachel RIZK
03/10/2023, 8:20 AMŁukasz Aszyk
03/10/2023, 11:11 AMconnector-builder
in the UI. Very helpful feature. Is there a chance you could add the inject_into: URL
option when handling the Pagination, please? I think it is a common case these parameters are passed through the URL, so having that would help significantly. Thank youŁukasz Aszyk
03/10/2023, 1:27 PMmanifest.yaml
file with the connector-builder
and everything seems to work just fine, but still got a few pydantic
related errors. I’ve checked the other .json
files that the parser could reference by setting up against, but still getting this. Anyone has seen and solved it before?Danish Raza
03/10/2023, 3:52 PM--catalog
to run a single stream only?
For example, I have 4 streams inside configured_catalog.json
but i want to run one of them only.
python main.py read --config secrets/config.json --catalog integration_tests/configured_catalog.json
Aazam Thakur
03/11/2023, 11:03 AMVISHAL B
03/13/2023, 7:37 AMJosh Jeffries
03/13/2023, 10:24 AMrecord_selector:
type: RecordSelector
extractor:
type: DpathExtractor
field_path:
- items
transformations:
- type: RemoveFields
field_pointers:
- [ "items", "links" ]
My json record response
{
"userId": 860,
"firstName": "__WebServiceUser_",
"email": "",
"deleted": true,
"mentionName": "@__webserviceuser_",
"createdAt": "2021-08-24T00:02:04Z",
"updatedAt": "2021-08-24T00:02:04Z",
"links": {
"self": "<https://eu2api.jobadder.com/v2/users/860>",
"userGroups": "<https://eu2api.jobadder.com/v2/users/860/usergroups>"
}
}
This should have removed the links array, but hasn't. I have tried with various field_pointers all with the same results. I also can't get the AddField transformation to work either.Fred Manley
03/13/2023, 1:58 PMElliot Trabac
03/13/2023, 2:39 PMDave Tomkinson
03/13/2023, 5:26 PMAndre Santos
03/13/2023, 7:57 PMAndre Santos
03/13/2023, 7:59 PMFred Manley
03/13/2023, 8:24 PMBart Veenstra
03/14/2023, 3:20 PM2023-03-14T16:14:49.249+0100 INFO Preparing command: docker run --rm --init -i -w /data/job --log-driver none --name destination-azure-data-lake-storage-gen2-write-0-0-yqfcb --network host -v /tmp/airbyte_tests/test9476898619965199338:/data -v /tmp/airbyte_tests/output3489329161128183704:/local -e USE_STREAM_CAPABLE_STATE=false -e FIELD_SELECTION_WORKSPACES= -e STRICT_COMPARISON_NORMALIZATION_WORKSPACES= -e APPLY_FIELD_SELECTION=false -e WORKER_CONNECTOR_IMAGE=airbyte/destination-azure-data-lake-storage-gen2:dev -e WORKER_JOB_ATTEMPT=0 -e AUTO_DETECT_SCHEMA=true -e WORKER_JOB_ID=0 -e STRICT_COMPARISON_NORMALIZATION_TAG=strict_comparison airbyte/destination-azure-data-lake-storage-gen2:dev write --config destination_config.json --catalog destination_catalog.json
2023-03-14T16:14:51.295+0100 INFO 2023-03-14T15:14:50.847+0000 INFO integration args: {catalog=destination_catalog.json, write=null, config=destination_config.json}
2023-03-14T16:14:51.300+0100 INFO 2023-03-14T15:14:50.856+0000 INFO Running integration: io.airbyte.integrations.destination.azure_data_lake_storage_gen2.AzureDataLakeStorageGen2Destination
2023-03-14T16:14:51.300+0100 INFO 2023-03-14T15:14:50.857+0000 INFO Command: WRITE
2023-03-14T16:14:51.308+0100 INFO 2023-03-14T15:14:50.857+0000 INFO Integration config: IntegrationConfig{command=WRITE, configPath='destination_config.json', catalogPath='destination_catalog.json', statePath='null'}
2023-03-14T16:14:51.335+0100 INFO 2023-03-14T15:14:50.878+0000 ERROR Something went wrong in the connector. See the logs for more details
Is there a trick to use the secrets/conf.json for running the connector acceptance tests during local developmenmt?Adham Suliman
03/14/2023, 5:13 PMŁukasz Aszyk
03/14/2023, 11:35 PMsource-tidsbanken-api % python -m pytest integration_tests -p integration_tests.acceptance
Ryan (Airbyte)
03/15/2023, 3:30 PMSami TAAISSAT
03/16/2023, 1:03 PMjson_response["links"]["next"]
how can I use this url directly in the python CDK ?Karri Shivaharsha
03/17/2023, 12:02 PMFred Manley
03/17/2023, 3:01 PMDieter De Beuckeleer
03/20/2023, 3:30 PMNo properties node in stream schema
. As I understand, something is missing in the yml file generate by the connector builder. Is there a way to add that piece of information with the connector builder or should I add it myself manually?Kevin Conseil
03/20/2023, 3:36 PMLenin Mishra
03/21/2023, 6:03 AMShreepad Khandve
03/23/2023, 10:59 AMpaginator:
type: DefaultPaginator
page_size: "#/definitions/page_size"
limit_option:
inject_into: "request_parameter"
field_name: "count"
page_token_option:
type: RequestOption
inject_into: "request_parameter"
field_name: "page"
pagination_strategy:
type: "PageIncrement"
page_size: 150
But when i run the read command to see the results, I am not able to iterate over all pages.
Can anyone help me to understand the logic ?Anton Marini
03/23/2023, 7:12 PMAnton Marini
03/23/2023, 7:54 PM./gradlew :airbyte-integrations:connectors:destination-weaviate:build
and I get:
> Task :airbyte-integrations:connectors:destination-weaviate:_unitTestCoverage FAILED
[python] .venv/bin/python -m coverage run --data-file=unit_tests/.coverage.unitTest --rcfile=/Volumes/Documents/Repositories/airbyte/pyproject.toml -m pytest -s unit_tests -c /Volumes/Documents/Repositories/airbyte/pyproject.toml
============================= test session starts ==============================
platform darwin -- Python 3.11.0, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 -- /Volumes/Documents/Repositories/airbyte/airbyte-integrations/connectors/destination-weaviate/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Volumes/Documents/Repositories/airbyte/airbyte-integrations/connectors/destination-weaviate/unit_tests, configfile: ../../../../pyproject.toml
collecting ... collected 0 items / 1 error
==================================== ERRORS ====================================
________________________ ERROR collecting unit_test.py _________________________
unit_tests/unit_test.py:8: in <module>
from destination_weaviate.client import Client
destination_weaviate/__init__.py:6: in <module>
from .destination import DestinationWeaviate
destination_weaviate/destination.py:9: in <module>
from airbyte_cdk import AirbyteLogger
.venv/lib/python3.11/site-packages/airbyte_cdk/__init__.py:5: in <module>
from .connector import AirbyteSpec, Connector
.venv/lib/python3.11/site-packages/airbyte_cdk/connector.py:14: in <module>
from airbyte_cdk.models import AirbyteConnectionStatus, ConnectorSpecification
.venv/lib/python3.11/site-packages/airbyte_cdk/models/__init__.py:8: in <module>
from .airbyte_protocol import *
.venv/lib/python3.11/site-packages/airbyte_cdk/models/airbyte_protocol.py:5: in <module>
from airbyte_protocol.models.airbyte_protocol import *
.venv/lib/python3.11/site-packages/airbyte_protocol/models/__init__.py:3: in <module>
from .airbyte_protocol import *
.venv/lib/python3.11/site-packages/airbyte_protocol/models/airbyte_protocol.py:374: in <module>
class AirbyteStateMessage(BaseModel):
.venv/lib/python3.11/site-packages/pydantic/main.py:292: in __new__
cls.__signature__ = ClassAttribute('__signature__', generate_model_signature(cls.__init__, fields, config))
.venv/lib/python3.11/site-packages/pydantic/utils.py:258: in generate_model_signature
merged_params[param_name] = Parameter(
/Users/vade/miniforge3/envs/airbyte/lib/python3.11/inspect.py:2715: in __init__
raise ValueError('{!r} is not a valid parameter name'.format(name))
E ValueError: 'global' is not a valid parameter name
=========================== short test summary info ============================
ERROR unit_tests/unit_test.py - ValueError: 'global' is not a valid parameter...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.83s ===============================
FAILURE: Build failed with an exception.
Anton Marini
03/23/2023, 7:57 PMv0.42.0
and for some reason this gradlew test is still failingAnton Marini
03/23/2023, 8:12 PMAnton Marini
03/23/2023, 8:13 PMAnton Marini
03/23/2023, 8:13 PM