Skip to content

Commit

Permalink
bugfix, static check
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshSingla committed Sep 7, 2023
1 parent ef4a529 commit 357d2ff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
*/
public class DoubleFieldWriter extends NumericFieldWriter
{
public static final int SIZE = Double.BYTES + Byte.BYTES;

private final BaseDoubleColumnValueSelector selector;

public static DoubleFieldWriter forPrimitive(final BaseDoubleColumnValueSelector selector)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ public ValueType getValueType()
return ValueType.LONG;
}

public Class<? extends Long> getClassOfObject()
{
return Long.class;
}

@Override
public ColumnValueSelector<?> getColumnValueSelector(
final Memory memory,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ public static FrameReader create(final RowSignature signature)

fieldReaders.add(FieldReaders.create(signature.getColumnName(columnNumber), columnType));

if (columnType.getType() == ValueType.ARRAY && columnType.getType() != ValueType.STRING) {
// TODO(laksh): comment
if (columnType.getType() == ValueType.ARRAY
&& Preconditions.checkNotNull(
columnType.getElementType(),
"Element type for array column [%s]",
signature.getColumnName(columnNumber)
).getType() != ValueType.STRING
) {
if (!unsupportedColumnAndType.isPresent()) {
unsupportedColumnAndType = Optional.of(Pair.of(signature.getColumnName(columnNumber), columnType));
}
Expand Down

0 comments on commit 357d2ff

Please sign in to comment.