Skip to content
Snippets Groups Projects
Commit 99c6cf9e authored by Michal Szafranski's avatar Michal Szafranski Committed by Reynold Xin
Browse files

[SPARK-20473] Enabling missing types in ColumnVector.Array

## What changes were proposed in this pull request?
ColumnVector implementations originally did not support some Catalyst types (float, short, and boolean). Now that they do, those types should be also added to the ColumnVector.Array.

## How was this patch tested?
Tested using existing unit tests.

Author: Michal Szafranski <michal@databricks.com>

Closes #17772 from michal-databricks/spark-20473.
parent 66dd5b83
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ public abstract class ColumnVector implements AutoCloseable {
@Override
public boolean getBoolean(int ordinal) {
throw new UnsupportedOperationException();
return data.getBoolean(offset + ordinal);
}
@Override
......@@ -188,7 +188,7 @@ public abstract class ColumnVector implements AutoCloseable {
@Override
public short getShort(int ordinal) {
throw new UnsupportedOperationException();
return data.getShort(offset + ordinal);
}
@Override
......@@ -199,7 +199,7 @@ public abstract class ColumnVector implements AutoCloseable {
@Override
public float getFloat(int ordinal) {
throw new UnsupportedOperationException();
return data.getFloat(offset + ordinal);
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment