ksql icon indicating copy to clipboard operation
ksql copied to clipboard

Could not create topic _confluent-ksql-dswes-ccpclstransient_4787618039516871800_1597734035766-Aggregate-groupby-repartition.

Open bjlvfei opened this issue 6 years ago • 6 comments

Hi Team,

we meet an issue when run the sql in ksql server as below. It's can not create this topic _confluent-ksql-dswes-ccpclstransient_4787618039516871800_1597734035766-Aggregate-groupby-repartition due to it's so long. Could someone please help to check it?

ksql> SET 'auto.offset.reset' = 'earliest'; Successfully changed local property 'auto.offset.reset' to 'earliest'. Use the UNSET command to revert your change.

ksql> select A_ENTTYP, count(*) NUM from STREAM_SODS1_SALES_ORD_PRTNR_ADR_INFO group by A_ENTTYP emit changes; +----------------------------------------------------------------+----------------------------------------------------------------+ |A_ENTTYP |NUM | +----------------------------------------------------------------+----------------------------------------------------------------+ Could not create topic _confluent-ksql-dswes-ccpclstransient_4787618039516871800_1597734035766-Aggregate-groupby-repartition. Caused by: Topic name exceeds the 100 character limit Query terminated

Levi Thanks!

bjlvfei avatar Aug 18 '20 07:08 bjlvfei

@bjlvfei which version of ksql and kafka are you running? From what I know, Kafka has a 255 character limit.

A quick test, could you create the _confluent-ksql-dswes-ccpclstransient_4787618039516871800_1597734035766-Aggregate-groupby-repartition directly in Kafka to see if it works?

spena avatar Aug 19 '20 13:08 spena

I have same issue. ksql 0.11.0 kafka: 2.3 (IBM Event Streams)

yfaykya avatar Aug 21 '20 11:08 yfaykya

https://cloud.ibm.com/docs/EventStreams?topic=EventStreams-restrictions#topics_partitions

Known restriction.

yfaykya avatar Aug 21 '20 11:08 yfaykya

Hi @spena

CLI v5.4.1, Server v5.4.1 The topic name limited in IBM Eventstream

Topics and partitions Topic names are restricted to a maximum of 100 characters.

Levi Thanks!

bjlvfei avatar Aug 23 '20 14:08 bjlvfei

Hey @bjlvfei @yfaykya, it's hard to support less than 100 characters in the topic name for the queries. That name is a mix of constants, service-id and other streams constants we cannot change. Only way is to reduce the # of characters of the service id dswes-ccpcls.

Currently we fully-support Kafka systems with 255 characters limitation, but not IBM Eventstream.

spena avatar Aug 26 '20 17:08 spena

I will close this issue as not fix.

spena avatar Aug 26 '20 17:08 spena