Set idempotence to null in BatchStatement.newInstance

Description

newInstance methods on BatchStatement are setting idempotence to false:

When it is set false instead of null the REQUEST_DEFAULT_IDEMPOTENCE is not taken into account when doing retry using policy:

SimpleStatement.newInstance is setting it to null therefore it is honoring that REQUEST_DEFAULT_IDEMPOTENCE, the BatchStatement doesn't.
Also, for 3.x the default was null so this behavior is not compatible with 3.x.

Environment

None

Pull Requests

None

Assignee

Tomasz Lelek

Reporter

Tomasz Lelek

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

Priority

Major
Configure