Here is an example Impala log:
I logged into an equivalent machine, and the OS sees these as not rotational:
Device names that end in a number get trimmed (i.e. /dev/sda2 becomes /dev/sda). See https://github.com/apache/impala/blob/master/be/src/util/disk-info.cc#L73-L74
These devices don't follow that pattern, so we don't find the right files. Neither /sys/block/nvme0n nor /sys/block/nvme0n1p exist, so both fall back to being rotational.