Query preparation failure in C* should be reported with InvalidQueryException instead of NoHostAvailableException

Description

Considering the following scenario:

1. from a CQL query containing a column A that exists in C* prepare a statement and cache it
2. run the prepared statement, it succeeds
3. remove the column A from C*
4. run the prepared statement, it fails with the following stack trace

Being it a problem of query preparation in C* an InvalidQueryException should be expected instead.

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Massimiliano Tomassi

Labels

None

PM Priority

None

Reproduced in

None

Affects versions

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Sprint

Priority

Minor
Configure