BUG: DatetimeIndex.get_indexer(timestamp[pyarrow]) (original) (raw)

Pandas version checks

Reproducible Example

dti = pd.date_range("2016-01-01", periods=3) arr = dti.astype("timestamp[ns][pyarrow]")

dti.get_indexer(arr) array([-1, -1, -1])

Issue Description

i suspect the problem is in is_comparable_dtype.

Note this is the underlying issue behind #61231

Expected Behavior

dti.get_indexer(dti)
array([0, 1, 2])

Installed Versions

Replace this line with the output of pd.show_versions()