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

Cannot use _tp_time in tumble window for external stream #55

Closed
jovezhong opened this issue Sep 7, 2023 · 8 comments · Fixed by #455
Closed

Cannot use _tp_time in tumble window for external stream #55

jovezhong opened this issue Sep 7, 2023 · 8 comments · Fixed by #455
Assignees
Labels
bug Something isn't working

Comments

@jovezhong
Copy link
Contributor

Describe what's wrong

I created an external stream with Redpanda in docker-compose

CREATE EXTERNAL STREAM frontend_events(raw string)
SETTINGS type='kafka', 
         brokers='redpanda:9092',
         topic='owlshop-frontend-events'

I cannot run

select window_start, raw:method, count() from tumble(frontend_events,1s)
group by window_start, raw:method

Error

Code: 43. DB::Exception: Received from localhost:8463. DB::Exception: Illegal column _tp_time argument of function TUMBLE. Must be datetime or datetime64. (ILLEGAL_TYPE_OF_ARGUMENT)

Have to use now() to avoid the default _tp_time.

select window_start, raw:method, count() from tumble(frontend_events,now(),1s)
group by window_start, raw:method

How to reproduce

1.3.9 proton. With docker-compose file at https://github.com/timeplus-io/proton/blob/feature/issue-14-refine-oss-docs/docker-compose.yml

Error message and/or stacktrace

Additional context

@jovezhong jovezhong added the bug Something isn't working label Sep 7, 2023
@jovezhong
Copy link
Contributor Author

(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.

6 similar comments
@jovezhong
Copy link
Contributor Author

(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.

@jovezhong
Copy link
Contributor Author

(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.

@jovezhong
Copy link
Contributor Author

(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.

@jovezhong
Copy link
Contributor Author

(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.

@jovezhong
Copy link
Contributor Author

(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.

@jovezhong
Copy link
Contributor Author

(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.

@jovezhong
Copy link
Contributor Author

(Jove Github Bot) moved this ticket out of the GitHub project(up to 1200 tickets for one project).

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

Successfully merging a pull request may close this issue.

2 participants