diff --git a/velox/functions/sparksql/specialforms/FromJson.cpp b/velox/functions/sparksql/specialforms/FromJson.cpp index 707e4c6662ec..d6549ff643aa 100644 --- a/velox/functions/sparksql/specialforms/FromJson.cpp +++ b/velox/functions/sparksql/specialforms/FromJson.cpp @@ -32,7 +32,7 @@ namespace { /// Struct for extracting JSON data and writing it with type-specific handling. template -struct ExtractJsonTypedImpl { +struct ExtractJsonTypeImpl { template static simdjson::error_code apply(Input input, exec::GenericWriter& writer, bool isRoot) { @@ -156,7 +156,7 @@ struct ExtractJsonTypedImpl { writerTyped.add_null(); } else { SIMDJSON_TRY(VELOX_DYNAMIC_TYPE_DISPATCH( - ExtractJsonTypedImpl::apply, + ExtractJsonTypeImpl::apply, elementType->kind(), element, writerTyped.add_item(), @@ -165,7 +165,7 @@ struct ExtractJsonTypedImpl { } } else if (elementType->kind() == TypeKind::ROW && isRoot) { SIMDJSON_TRY(VELOX_DYNAMIC_TYPE_DISPATCH( - ExtractJsonTypedImpl::apply, + ExtractJsonTypeImpl::apply, elementType->kind(), value, writerTyped.add_item(), @@ -195,7 +195,7 @@ struct ExtractJsonTypedImpl { auto writers = writerTyped.add_item(); std::get<0>(writers).castTo().append(key); SIMDJSON_TRY(VELOX_DYNAMIC_TYPE_DISPATCH( - ExtractJsonTypedImpl::apply, + ExtractJsonTypeImpl::apply, valueType->kind(), field.value(), std::get<1>(writers), @@ -242,7 +242,7 @@ struct ExtractJsonTypedImpl { it->second = -1; auto res = VELOX_DYNAMIC_TYPE_DISPATCH( - ExtractJsonTypedImpl::apply, + ExtractJsonTypeImpl::apply, rowType.childAt(index)->kind(), field.value(), writerTyped.get_writer_at(index), @@ -464,7 +464,7 @@ class FromJsonFunction final : public exec::VectorFunction { writer.commitNull(); } else { SIMDJSON_TRY( - ExtractJsonTypedImpl::apply( + ExtractJsonTypeImpl::apply( doc, writer.current(), true)); writer.commit(true); }