Remove __row_id (#8257)

This commit is contained in:
Beto Dealmeida
2019-09-18 20:32:33 -07:00
committed by GitHub
parent 799e08d76f
commit 6df74c6b8e
2 changed files with 6 additions and 54 deletions

View File

@@ -926,11 +926,6 @@ class PrestoEngineSpec(BaseEngineSpec):
if not is_feature_enabled("PRESTO_EXPAND_DATA"):
return columns, data, []
# insert a custom column that tracks the original row
columns.insert(0, {"name": "__row_id", "type": "BIGINT"})
for i, row in enumerate(data):
row["__row_id"] = i
# process each column, unnesting ARRAY types and expanding ROW types into new columns
to_process = deque((column, 0) for column in columns)
all_columns: List[dict] = []