Correlated column is not allowed in non predicate in UDF SQL
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 10:23 AM - edited 09-25-2023 10:28 AM
Hi Team,
I am new to databricks and currently working on creating sql udf 's in databricks .
In udf we are calculating min date and that date column using in where clause also.
While running udf getting Correlated column is not allowed in non predicate
Ex: In Udf we are calling as below
Select min(hiredate) from Emp where empno=&1 and hiredate<=&2
&1 and &2 are function input parameters.
Request you please help me on this