Lakshay
Databricks Employee
Databricks Employee

You should create a udf on top of getMediumText function and then use the udf in the sql statement.