-
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
KSQL 5.4 pull query should be smart enough to determine if <field> is the same as ROWKEY #3527
Comments
This is a known issue that will get resolved. I don’t think there’s an issue for it yet though so let’s track it with this one. |
Hey @rmoff - I'm aware of this shortcoming. However, I'm looking to deprecate `WITH(KEY='x') syntax soon and so this kind of becomes less important. #3536 will see users able to name their keys something other than However, even with the My vote is to close this issue as a 'will not do' |
This was a table created from an aggregate, and the key came from the We should keep this as a task to do, IMO. |
I don't think it will. Consider: -- create stream:
CREATE STREAM S (user STRING KEY, INT ID, NAME STRING) WITH (topic='foo', format='json');
-- create an aggregate table:
CREATE TABLE T AS SELECT COUNT(*) AS COUNT FROM S GROUP BY ID;
-- schema of about will be 'ID INT KEY, COUNT LONG'.
-- issue pull query:
SELECT * FROM T WHERE ID = 10; As you can see, not a 'key field' in sight... (remember key fields are when there is a copy of the key in the value). This just uses the key column name. Totally different code and much cleaner / clearer functionality! |
See #3537 |
@big-andy-coates I follow your login on the |
WITH(KEY) syntax is no more... so closing... |
Table:
❌ Key as shown is
CLUB_STATUS
. Query using this doesn't work:✔️ Have to literally use
ROWKEY
.ROWKEY
, because it's not clear - as a user I think I understand keys, that my key isCLUB_STATUS
, so why's it not working.The text was updated successfully, but these errors were encountered: