What is the maximum length limitation for VARCHAR type in Spark?

Viewed 324

I am trying to find out the length limitation for Varchar type in Spark. Checked the datatype documentation page but limit is not mentioned here. https://spark.apache.org/docs/latest/sql-ref-datatypes.html As mentioned on above page

VarcharType(length): A variant of StringType which has a length limitation. Data writing will fail if the input string exceeds the length limitation. Note: this type can only be used in table schema, not functions/operators.

So what can be the maximum possible value of length here?

1 Answers
Related