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

/t /n in data break ingest of the data #96

Open
chomartek opened this issue Dec 14, 2023 · 0 comments
Open

/t /n in data break ingest of the data #96

chomartek opened this issue Dec 14, 2023 · 0 comments

Comments

@chomartek
Copy link

When saving the data from delta table to starrocks with starrocks-connector-for-apache-spark operations breaks with Value count does not match column count. Expect 6, but got 0.Column delimiter: 9,Row delimiter: 10.. error when data in the delta table contains /t or /n
When characters are filtered import works.

df.withColumn("problem_column", F.regexp_replace(F.col("problem_column"), F.lit("\t"), F.lit("")))
.write.format("starrocks").option(...)
.mode("append")
.save()
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

1 participant