Errors code 4070 with message "Unable to decode prepared statement - cause: Unrecognizable prepared statement - cause: JSON unmarshalling error: No operator for name DistinctScan" when query data by REST API of prepared statement

Dear users,

I’m facing a very similar issue when using the last version of the .NET SDK, but with OrderedIntersectScan.

ClientContextId: Message: Error: 4070 Unable to decode prepared statement
cause: Unrecognizable prepared statement
cause: JSON unmarshalling error: No operator for name OrderedIntersectScan

The strange thing is sometimes the query returns result, sometimes it gives me this error.
The query is formed like this:

SELECT autocompleteInfo.* FROM products
WHERE 1 = 1 AND type <> 'shop'
AND stats.rankingPosition is not missing
AND ANY v IN searchKeyA SATISFIES v = $1 END
[AND ANY v IN searchKeyA SATISFIES v = $2 END ...]
ORDER BY stats.rankingPosition
LIMIT 7;

I’m running 4.6.3 EE on server.

Stefano