Vec.adaptTo applied to a BAD vector, returns an adapted CategoricalWrapper that is not BAD anymore

Description

When investigating on PUBDEV-6376, we notice that the adapted frame created from the original test frame without response column, had a response column apparently filled with NAs but was not considered as BAD:
vec.isBad() was returning false.
This has some consequences on logic that relies on this state, like metrics.

Assignee

Sebastien Poirier

Fix versions

Reporter

Sebastien Poirier

Support ticket URL

None

Labels

None

Affected Spark version

None

Customer Request Type

None

Task progress

None

ReleaseNotesHidden

None

CustomerVisible

No

Components

Priority

Major
Configure