[#9025] failed to parse query when registering query for Percolator API

This is a PR according to [#9025] failed to parse query when registering query for Percolator API<br>
Please review this and pull it to the master.<br>
All the test cases have passed.