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

Sink: can't create elasticsearch sink with TIMESTAMP type #13585

Closed
xuefengze opened this issue Nov 22, 2023 · 0 comments · Fixed by #13619
Closed

Sink: can't create elasticsearch sink with TIMESTAMP type #13585

xuefengze opened this issue Nov 22, 2023 · 0 comments · Fixed by #13619
Labels
type/bug Something isn't working
Milestone

Comments

@xuefengze
Copy link
Contributor

Describe the bug

No response

Error message/log

Sink error: Remote sink error: java.lang.IllegalArgumentException: cannot write xcontent for unknown value of type class java.sql.Timestamp

To Reproduce

CREATE TABLE test (
  id INT,
  t  TIMESTAMP,
  PRIMARY KEY(id)
);
 
INSERT INTO test VALUES (1, '0001-01-01 00:00:00');

CREATE SINK es FROM test WITH (
    connector = 'elasticsearch',
    index = 'test',
    url = 'http://elasticsearch:9200',
    username = 'elastic',
    password = 'risingwave'
 );

Expected behavior

No response

How did you deploy RisingWave?

No response

The version of RisingWave

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant