-
Notifications
You must be signed in to change notification settings - Fork 1k
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
latest_by_offset
does not support DECIMAL
#8368
Labels
Comments
As a workaround you can |
Any update or workarounds ? |
@dttouchdata - one workaround is to use a source table to pick up the latest rows. I did this: CREATE SOURCE TABLE latest_price (
stock_id VARCHAR PRIMARY KEY,
description VARCHAR,
price DECIMAL(10,2)
) WITH (
KAFKA_TOPIC = 'stocks',
VALUE_FORMAT = 'avro'
);
SELECT * FROM latest_price; ...and that gave me the results I was expecting. Whether that will work for you depends on your use-case, but it's another option to explore. |
jnh5y
added a commit
that referenced
this issue
Mar 11, 2022
2 tasks
jnh5y
added a commit
that referenced
this issue
Mar 15, 2022
#8878 should close this out! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
There is no
latest_by_offset
implementation for theDECIMAL
type. This is a problem if, for example, you want the latest price of something.To Reproduce
Expected behavior
I was expecting a table of two prices,
CFLT=81.02
andNASDAQ=4028.19
.Actual behaviour
Additional context
This is running against ksql 7.0.0.
The text was updated successfully, but these errors were encountered: