Why use Sparksql to query elasticsesarch the result incorrect

I'm using sparkSql to query elasticsearch,the program can run successful,but the query result incorrect,the SQL is:
select count(1) from myTableName;
Every time run the program the result is inconformity.How can I guarantee the result is the same

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.