Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NIFI QueryDatabaes org.apache.avro.SchemaParseException: Illegal character in: COUNT(*);

Tags:

apache-nifi

I am trying to get the count from MySql Database using ExecuteSQL Processor. However everytime I do that I am getting following error.

Error:

org.apache.avro.SchemaParseException: Illegal character in: COUNT(*);

Following is the configuration enter image description here

If I change the query to select everything it works fine, like below.

Select * from temp.test

like image 700
Gaurang Shah Avatar asked Oct 19 '25 03:10

Gaurang Shah


1 Answers

Keep alias name for the count(*) as count or cnt ..etc,

then use the query with alias name for count(*) in you execute sql processor.

Example:-

Select count(*) count from temp.test

(or)

Select count(*) as count from temp.test
like image 192
notNull Avatar answered Oct 22 '25 04:10

notNull