Skip to content

Commit

Permalink
review comments 1
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshSingla committed Oct 18, 2023
1 parent b2d1401 commit 9feb7dc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public DimensionSelector makeDimensionSelector(DimensionSpec dimensionSpec)
return new DimensionSelector()
{
final DimensionSelector delegateDimensionSelector = delegate.makeDimensionSelector(dimensionSpec);
final ExpressionType expressionType = ExpressionType.fromColumnType(dimensionSpec.getOutputType());

@Override
public IndexedInts getRow()
Expand Down Expand Up @@ -103,7 +104,6 @@ public void inspectRuntimeShape(RuntimeShapeInspector inspector)
public Object getObject()
{
try {
ExpressionType expressionType = ExpressionType.fromColumnType(dimensionSpec.getOutputType());
if (expressionType == null) {
return delegateDimensionSelector.getObject();
}
Expand Down Expand Up @@ -154,6 +154,9 @@ public ColumnValueSelector makeColumnValueSelector(String columnName)
return new ColumnValueSelector()
{
final ColumnValueSelector delegateColumnValueSelector = delegate.makeColumnValueSelector(columnName);
final ExpressionType expressionType = ExpressionType.fromColumnType(
rowSignature.getColumnType(columnName).orElse(null)
);

@Override
public double getDouble()
Expand Down Expand Up @@ -205,9 +208,6 @@ public boolean isNull()
public Object getObject()
{
try {
ExpressionType expressionType = ExpressionType.fromColumnType(rowSignature
.getColumnType(columnName)
.orElse(null));
if (expressionType == null) {
return delegateColumnValueSelector.getObject();
}
Expand Down

0 comments on commit 9feb7dc

Please sign in to comment.