validateSchemaLiteral(exp: Expression): StructType
JsonToStructs Unary Expression
JsonToStructs
is a unary expression with timezone support and CodegenFallback that represents from_json function.
Parsing Table Schema for String Literals — validateSchemaLiteral
Method
validateSchemaLiteral
requests CatalystSqlParser to parseTableSchema for Literal of StringType.
For any other non-StringType
types, validateSchemaLiteral
reports a AnalysisException
:
Expected a string literal instead of [expression]