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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does chproxy of clickhouse support vector data ingestion? #20493

Closed
hueiyuan opened this issue May 14, 2024 · 3 comments
Closed

Does chproxy of clickhouse support vector data ingestion? #20493

hueiyuan opened this issue May 14, 2024 · 3 comments
Labels
meta: awaiting author Pull requests that are awaiting their author. sink: clickhouse Anything `clickhouse` sink related type: bug A code related bug.

Comments

@hueiyuan
Copy link

A note for the community

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

Hi, all

Now we apply vector to ingest data to clickhouse. And we found that corresponding clickhouse sink does not support chproxy so that can not ingest data to clickhouse.

But we have confirmed our chproxy setting is fine, another way can write data to clickhouse with it. But if we specify chproxy endpoint on vector setting, which can not write data to clickhouse and shows 400 bad requests.

So we want to check whether do not support chproxy on vector? thank you.

Configuration

No response

Version

0.35.0

Debug Output

No response

Example Data

No response

Additional Context

No response

References

No response

@hueiyuan hueiyuan added the type: bug A code related bug. label May 14, 2024
@jszwedko jszwedko added the sink: clickhouse Anything `clickhouse` sink related label May 20, 2024
@jszwedko
Copy link
Member

Hi @hueiyuan ,

Can you provide more details about why chproxy is returning 400s? I imagine chproxy might have some logs that could help. If Vector is able to successfully send to Clickhouse, but not chproxy, this could indicate a bug in chproxy rather than Vector.

@jszwedko jszwedko added the meta: awaiting author Pull requests that are awaiting their author. label May 20, 2024
@hueiyuan
Copy link
Author

Hi, @jszwedko
We have enabled debug mode but do not get more information.
And based on vector request to chproxy headers, we found because our datetime is ISO-8601 Format. We also enable date_time_best_effort, and this setting is by session.
So if we want to request to clickhouse with chproxy, the headers does not keep-alive so that can not parse related date time format to clickhouse with chproxy.

Now workaround is we convert to unix_timestamp format in vector pipeline and ingest to clickhouse with chproxy, that's work.

@jszwedko
Copy link
Member

Ah I see, thanks for following up @hueiyuan ! I'll mark this as resolved, but let us know if you have any more issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: awaiting author Pull requests that are awaiting their author. sink: clickhouse Anything `clickhouse` sink related type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

2 participants