Hi, how are you doing? I found a problem using no...
# help-connector-development
a
Hi, how are you doing? I found a problem using non-ascii characters in Custom Connector Stream name as well as Field name, e.g. given a Stream Name "καταστήματα" and fields name "όνομα" while loading data to PostgreSQL destination table is created with "_" instead of non-ascii symbols. At the same time, destination database is created with UTF8 support and allows "CREATE TABLE" and "INSERT INTO" with non-ascii table names and field names. Is there any settings which I should use on the connector to use UTF8 symbols in Stream and Field names? Thank you!
p
No, there is no setting. Many connectors sanitize non-ascii characters PostgresSQLNameTransformer.kt#L18-L20 StandardNameTransformer.kt#L37-L39 Names.kt#L20-L28 To support
UTF8 symbols in Stream and Field names
you need to create custom versions of connectors, probably on both sides - source and destination
a
Thank you @Przemysław Dąbek It worth noting that UTF8 data itself is properly transferred to the Destination. Only stream and field names are affected. And, Connector Builder GUI itself allows to create Streams with UTF8 names. Which is quite ... misleading. 🤨
j
Ultimately what's supported is determined by the destination connector, which is why you'll find some destinations support different things than others. You can look and see if there's an existing Issue in GitHub for this one, or create one there. Or submit a PR for a change. Do keep in mind though, projects like Airbyte often try to maximize compatibility across both versions and configurations. So anything that requires non-default settings or settings that have changed defaults could be a breaking change so maintainers often err on the side of caution with such changes.
a
Thanks a lot @Justin Beasley and @Przemysław Dąbek for detailed explanation. What, in your opinion, could be a working solution provided I have custom API connectors to datasources with Greek and Bulgarian Stream and Field names?
j
@Alexei Kozhushkov It's not ideal, but I would start by transliterating them for now when possible (easier with streams than fields, but you may be able to either use a custom component or see if you can make one of the existing Jinja filters work. worst case scenario is having to add a bunch of Transformations to add it with the corrected name, then remove the old one). The better long-term solution is probably to research current issues related to the destination and see if anyone has already flagged this, and if not and this is behavior that would work out of the box in most Postgres databases, I'd recommend creating an GitHub Issue describing the use case and recommending it. Because this could change how existing deployments sanitize names, I'd recommend suggesting it as an option in the destination—allowing the user to choose to opt-in to that behavior if they want it (some may not, because it could break downstream pipelines that don't handle extended character ranges).
a
Hi @Justin Beasley and thanks again for the great input 🙏