@@ -89,7 +89,7 @@ std::vector<velox::common::Subfield> columnSubfields(
8989 }
9090 if (first &&
9191 optimization->options ().isMapAsStruct (
92- table->schemaTable ->name , columnName)) {
92+ table->schemaTable ->name () , columnName)) {
9393 elements.push_back (
9494 std::make_unique<velox::common::Subfield::NestedField>(
9595 step.field ? std::string (step.field )
@@ -394,7 +394,7 @@ velox::core::TypedExprPtr ToVelox::pathToGetter(
394394 auto * rel = column->relation ();
395395 if (rel->is (PlanType::kTableNode ) &&
396396 isMapAsStruct (
397- rel->as <BaseTable>()->schemaTable ->name , column->name ())) {
397+ rel->as <BaseTable>()->schemaTable ->name () , column->name ())) {
398398 // This column is a map to project out as struct.
399399 newStep.kind = StepKind::kField ;
400400 if (step.field ) {
@@ -935,7 +935,7 @@ velox::RowTypePtr ToVelox::subfieldPushdownScanType(
935935 top.add (topColumn);
936936 topColumns.push_back (topColumn);
937937 names.push_back (topColumn->name ());
938- if (isMapAsStruct (baseTable->schemaTable ->name , topColumn->name ())) {
938+ if (isMapAsStruct (baseTable->schemaTable ->name () , topColumn->name ())) {
939939 types.push_back (skylineStruct (baseTable, topColumn));
940940 typeMap[topColumn] = types.back ();
941941 } else {
0 commit comments