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

Writing StructType to ClickHouse #278

Open
MohsenIT opened this issue Nov 6, 2023 · 1 comment
Open

Writing StructType to ClickHouse #278

MohsenIT opened this issue Nov 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@MohsenIT
Copy link

MohsenIT commented Nov 6, 2023

I want to write a dataframe with struct type column into clickhouse. But it raises an error:
Can't convert 'StructType([StructField('addon_id', StringType(), True), StructField('app_slug', StringType(), True), StructField('token', StringType(), True), StructField('uri', StringType(), True), StructField('in_browser', BooleanType(), True), StructField('addon_position', StringType(), True)])' datatype from spark to clickhouse.

  1. Why struct type does not convert to NestedType/Tuple/Json?
  2. How can we create NestedType/Tuple/ Json Column using spark-clickhouse-connector ?
@pan3793
Copy link
Collaborator

pan3793 commented Nov 7, 2023

The current implementation has very limited support for complex data types.

@mzitnik mzitnik added the enhancement New feature or request label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants