postgres-kafka-demo icon indicating copy to clipboard operation
postgres-kafka-demo copied to clipboard

The RESEARCH_AVE_BOOST ksql does not return any results

Open colathurv opened this issue 3 years ago • 0 comments

I went through the entire example, until the end. I cross checked the creation of the table and data all through.

The only modification I had to do was the creation as below.

CREATE TABLE research_ave_boost WITH (KAFKA_TOPIC='research_ave_boost', VALUE_FORMAT='delimited') AS SELECT research, SUM(admit_chance)/COUNT(admit_chance) as ave_chance FROM research_boost GROUP BY research;

However this query in ksql does not return any results.

`SELECT "AVE_CHANCE" FROM "RESEARCH_AVE_BOOST"

WHERE cast("RESEARCH" as INT)=0;`

colathurv avatar Sep 27 '21 15:09 colathurv