Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snowflake.topic2table.map regex feature request #951

Closed
shokhan-nulogy opened this issue Oct 7, 2024 · 2 comments
Closed

Snowflake.topic2table.map regex feature request #951

shokhan-nulogy opened this issue Oct 7, 2024 · 2 comments

Comments

@shokhan-nulogy
Copy link

shokhan-nulogy commented Oct 7, 2024

Hi Snowflake Team,

I request the feature of mapping Snowflake topics to tables through the use of regular expressions.

The snowflake.topic.regex config helps us automatically detect new tables in our source database and publish the topics, however we still face the issue of not being able to map these topics to specific tables in Snowflake. The topics2table.map works for the topics config but not the topics.regex config.

Thank you

@sfc-gh-gjachimko
Copy link
Contributor

Thank you for inquiry. We will add that to our backlog.

@sfc-gh-gjachimko
Copy link
Contributor

@shokhan-nulogy actually - I've checked with the team and this functionality is already supported (the documentation is lagging behind unfortunately).
According to this code you should be able to define both topic match via regexp as well as mapping to the tables. Please make sure your regexp definitions do not overlap.

I've checked if that is working with my test deployment and I can confirm it is (I've got 3 topics matching that regexp):

    "topics.regex": "TEST_TOPIC[0-9]",
    "snowflake.topic2table.map": "TEST_TOPIC[0-9]:target",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants