Comments (8)
Your tutorials still show the old syntax
from ksql.
I'm having the same issue on version 6.0.0
sh-4.4$ ksql
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
===========================================
= _ _ ____ ____ =
= | | _____ __ _| | _ \| __ ) =
= | |/ / __|/ _` | | | | | _ \ =
= | <\__ \ (_| | | |_| | |_) | =
= |_|\_\___/\__, |_|____/|____/ =
= |_| =
= Event Streaming Database purpose-built =
= for stream processing apps =
===========================================
Copyright 2017-2020 Confluent Inc.
CLI v6.0.0, Server v6.0.0 located at http://localhost:8088
Having trouble? Type 'help' (case-insensitive) for a rundown of how things work!
ksql> CREATE TABLE itemsTable WITH(KAFKA_TOPIC='coreCmdItemV2', VALUE_FORMAT='avro', KEY='ID');
Failed to prepare statement: Invalid config variable(s) in the WITH clause: KEY
ksql>
from ksql.
hello @matjazmav - we removed the WITH(key=
syntax in 6.0. You can read more about it here: https://www.confluent.io/blog/ksqldb-0-10-updates-key-columns/
the tl;dr is that you should specify the key in your create statement: CREATE TABLE itemsTable (ID INT PRIMARY KEY) WITH(...);
from ksql.
then I meet another issue ,when I replaced KEY with PARTITION_BY and execute the create stream statement again,
ksql> CREATE STREAM test_timestamp2 WITH (kafka_topic='test_time',partition_by='genTime',partitions=3,replications=3,timestamp='genTime') as select flag,id,username,money,stringtotimestamp(create_time,'yyyy-MM-dd HH:mm:ss') as genTime, random from test1;
io.confluent.ksql.util.KsqlException: Cannot add the new topic. Another topic with the same name already exists: test_time
ksql> show topics;
Kafka Topic | Registered | Partitions | Partition Replicas
---------------------------------------------------------------
ksql__commands | true | 1 | 1
live | true | 3 | 3
test | false | 1 | 1
test_time | true | 3 | 3
TEST_TIMESTAMP | false | 3 | 3
ksql> list streams;
Stream Name | Kafka Topic | Format
------------------------------------------
TEST_TIMESTAMP | test_time | DELIMITED
TEST1 | live | DELIMITED
The topic test_time already created even though the statement failure.
from ksql.
@zhuxt2015 Thanks for your feedback. The docs issue has been resolved. The first statement you ran created the result topic. You need to delete this topic in Kakfka or use a different topic name for the result stream.
Let us know if you find any other issues.
from ksql.
Hi Team,
Is it still not fixed? I am using 5.0 version of confluent and I am still getting error " Invalid config variable in the WITH clause: KEY"
from ksql.
Is this fixed in confluent version 5.2.1?
I am getting the same error with the confluent 5.2.1
from ksql.
@FrankR85 - you linked to the 5.4 versions of the docs, please try the newest versions which link to the microsite (https://docs.ksqldb.io/en/latest/developer-guide/ksqldb-reference/create-table-as-select/)
from ksql.
Related Issues (20)
- COLLECT_LIST in KSQL returning duplicate results OR retaining previous results HOT 13
- KSQL_KSQL_HEARTBEAT_ENABLE settings inquiry HOT 2
- UDAF with GROUP BY not working properly - NullPointerException HOT 1
- RETENTION_MS config mandatory?
- Data Discrepancy in Tumbling Windowed Table Creation from IoT Data Stream HOT 1
- Unable to verify if the value schema for topic: is compatible with ksqlDB HOT 1
- release 7.6.0-137 missing HOT 1
- Unable to Locate the packages in maven repository HOT 1
- Inconsistent results in pull queries with distributed KsqlDB setup HOT 1
- KSQL application for denormalizing data for data warehouses
- KSQLDB is throwing Error as "The group is Not Empty"
- Persistent query silently fails / is deleted, but still shows as RUNNING
- Testing tool missing from 7.6.0 release
- `ksql-migrations` returns an error to the shell when there are no eligible migrations
- Table Pull Query Scan: Add 'IS (NOT) NULL' Filter HOT 1
- Unable to verify if the value schema for topic -- PROTOBUF -- Reason: null HOT 1
- Streaming ETL pipeline Tutorial Error
- KSQL Configuration with Kafka Connect with Authentication HOT 1
- KSQL with authenticated kafka connect not documented
- Docker compose fails for ksqldb-cli on Mac M2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ksql.