Skip to content

Commit

Permalink
Revert an experiment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdunkerley authored Mar 23, 2023
1 parent 14402db commit 90b5d40
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.enso.table.error.UnexpectedColumnTypeException;
import org.graalvm.polyglot.Value;

import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.List;
Expand Down Expand Up @@ -128,12 +127,8 @@ public static Column fromItems(String name, List<Value> items) {
// ToDo: This a workaround for an issue with polyglot layer. #5590 is related.
// to revert replace with: for (Value item : items) {
for (Object item : items) {
if (item instanceof Value v) {
Object converted = Polyglot_Utils.convertPolyglotValue(v);
builder.appendNoGrow(converted);
} else {
builder.appendNoGrow(item);
}
Object converted = item instanceof Value v ? Polyglot_Utils.convertPolyglotValue(v) : item;
builder.appendNoGrow(converted);
}
var storage = builder.seal();
return new Column(name, storage);
Expand Down

0 comments on commit 90b5d40

Please sign in to comment.