英文:
How to define a Kafka consumer group starting with a number and use it in Memgraph?
问题
I've noticed that when attempting to create a Kafka stream with a consumer group name starting with a number, it is not accepted. However, if I prepend a letter before the numbers in the consumer group name, it is accepted. Shouldn't the literal following CONSUMER_GROUP
be treated as a string regardless of whether it starts with a number?
Here's the revised query:
CREATE KAFKA STREAM my_stream
TOPICS sales-data
TRANSFORM my_app.sales_transformations
CONSUMER_GROUP group12345abcde
BOOTSTRAP_SERVERS 'kafka.example.com:9092'
CREDENTIALS {'sasl.username':'my_username',
'sasl.password':'my_password',
'security.protocol':'SASL_SSL',
'sasl.mechanism':'PLAIN'};
英文:
I've noticed that when attempting to create a Kafka stream with a consumer group name starting with a number, it is not accepted. However, if I prepend a letter before the numbers in the consumer group name, it is accepted. Shouldn't the literal following CONSUMER_GROUP
be treated as a string regardless of whether it starts with a number?
Here's the revised query:
CREATE KAFKA STREAM my_stream
TOPICS sales-data
TRANSFORM my_app.sales_transformations
CONSUMER_GROUP group12345abcde
BOOTSTRAP_SERVERS 'kafka.example.com:9092'
CREDENTIALS {'sasl.username':'my_username',
'sasl.password':'my_password',
'security.protocol':'SASL_SSL',
'sasl.mechanism':'PLAIN'};
答案1
得分: 1
在Memgraph GitHub存储库中存在一个未解决的问题。这纯粹是Memgraph的一个限制,缓解此问题的简单方法是在名称前添加任何有效字符。
英文:
There is an open issue in Memgraph GitHub repo. This is purely a limitation Memgraph has, an easy way to mitigate the issue is to just prefix the name by any valid character.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论