Hi, do you have any plans to build Cassandra extra...
# contributing
m
Hi, do you have any plans to build Cassandra extractor with Meltano SDK? Were there anyone from the community? I was searching for "cassandra" in slack messages, but there are none as it looks like.
p
@mindaugas_nizauskas I havent seen any in the community unfortunately and its also not currently on our roadmap to build. Building it with the SDK is probably your best bet! I created an issue in the singer most wanted repo to track it though https://github.com/MeltanoLabs/Singer-Most-Wanted/issues/81
m
I created the initial code, but it is still not working - https://github.com/datarts-tech/tap-cassandra/tree/create_cassandra_classes Maybe the following error is common gotcha when I am execute
poetry run tap-cassandra --config ./.secrets/my_config.json
?
Copy code
File "/Users/mindaugas/dev/meltano/datarts-tech/tap-cassandra/tap_cassandra/streams.py", line 24, in __init__
    super().__init__(name=name, tap=tap)
  File "/Users/mindaugas/.pyenv/versions/3.10.2/envs/meltano/lib/python3.10/site-packages/singer_sdk/streams/core.py", line 165, in __init__
    if not self.schema:
  File "/Users/mindaugas/dev/meltano/datarts-tech/tap-cassandra/tap_cassandra/streams.py", line 42, in schema
    return th.PropertiesList(*properties).to_dict()
  File "/Users/mindaugas/.pyenv/versions/3.10.2/envs/meltano/lib/python3.10/site-packages/singer_sdk/typing.py", line 242, in to_dict
    return self.type_dict  # type: ignore[no-any-return]
  File "/Users/mindaugas/.pyenv/versions/3.10.2/envs/meltano/lib/python3.10/site-packages/singer_sdk/typing.py", line 692, in type_dict
    merged_props.update(w.to_dict())
  File "/Users/mindaugas/.pyenv/versions/3.10.2/envs/meltano/lib/python3.10/site-packages/singer_sdk/typing.py", line 564, in to_dict
    type_dict = self.type_dict
  File "/Users/mindaugas/.pyenv/versions/3.10.2/envs/meltano/lib/python3.10/site-packages/singer_sdk/typing.py", line 556, in type_dict
    return t.cast(dict, wrapped.type_dict)
AttributeError: 'list' object has no attribute 'type_dict'. Did you mean: '_catalog'?
Also, could you share the code example I could use to implement different replications (incremental key based and full table)? And how should proceed I with the issue you created? Just reference in my PR?
p
Awesome! Yeah just make a comment in that issue I created so others are aware that youre working on developing the tap.
Theres lots of good examples in https://github.com/MeltanoLabs
Also IDE tips for debugging your tap is very helpful. You can drop a breakpoint and figure out what exactly is causing the issue