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

Incorrect syntax on kpi-dashboard/dashboard_table.sql #261

Open
amcarvalho opened this issue Jul 13, 2023 · 0 comments
Open

Incorrect syntax on kpi-dashboard/dashboard_table.sql #261

amcarvalho opened this issue Jul 13, 2023 · 0 comments

Comments

@amcarvalho
Copy link

amcarvalho commented Jul 13, 2023

Tagging @krisajenkins for visibility.

I believe this may have been due to a change in the kSQL spec, but the syntax for this table creation no longer works.

The syntax to use now should be:

CREATE OR REPLACE TABLE dashboard
WITH (
  KAFKA_TOPIC='dashboard',
  PARTITIONS=3,
  REPLICAS=3,
  VALUE_AVRO_SCHEMA_FULL_NAME='io.confluent.developer.dashboard.DashboardValue',
  VALUE_FORMAT='avro'
)
AS
  SELECT
    'sales' as metric,
    sum(price) AS total
  FROM purchases
  GROUP BY 'sales'
;

✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant