Kafka Conect JDBC Postgres – 能否将整个 JSON 写入一个列而不解析值到各个列?

huangapple go评论73阅读模式
英文:

Kafka Conect JDBC Postgres - Can i write entire json to one column without parsing values to columns?

问题

可以使用Confluent Kafka JDBC连接器将整个JSON写入一个列中,格式如下:

Key|Value
1 | {....}
2 | {....}
3 | {....}
英文:

Can i write entire json to one column using Confluent Kafka JDBC connector in format?


 Key|Value
  1 | {....}
  2 | {....}
  3 | {....}

答案1

得分: 1

只有在使用Postgres,并且只有在预定义表格时才适用。

https://github.com/confluentinc/kafka-connect-jdbc/issues/46#issuecomment-1135209669

否则,Mongo/DocumentDB可能比关系型数据库更适合处理JSON数据。

英文:

Only with Postgres, and only if you predefine the table

https://github.com/confluentinc/kafka-connect-jdbc/issues/46#issuecomment-1135209669

Otherwise, Mongo/DocumentDB might be better for JSON data than a relational database

huangapple
  • 本文由 发表于 2023年7月4日 21:43:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/76613268.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定