How to use spark sql filter as a case sensitive filter on a column basis of a Pattern.
For example, I have a pattern:
'Aaaa AA'
And my column has data like this:
adaz
LssA ss
Leds ST
Pear QA
Lear QA
I want to retrieve rows that have the "Aaaa AA" pattern, with respect to letter case. This means that the desired rows will be 'Leds ST' , 'Pear QA', 'Lear QA'.
"Aaaa AA" => 'Leds ST' , 'Pear QA', 'Lear QA'
"AaaA aa" => 'LssA ss'
"aaaa" => 'adaz'
How can I get this result using spark sql? Or can we write any regex sql query for this result ?