Is there a better implementation in Spark SQL by regexp_like for the following
SELECT col1,
col2
FROM fact_table
WHERE UPPER((TRIM(NAME))) LIKE 'VAL1 %'
OR UPPER((TRIM(NAME))) LIKE '% VAL1 %'
OR UPPER((TRIM(NAME))) ='VAL1'
OR UPPER((TRIM(NAME))) LIKE 'VAL1-%'
OR UPPER((TRIM(NAME))) LIKE 'VAL2 %'
OR UPPER((TRIM(NAME))) LIKE '% VAL2 %'
OR UPPER((TRIM(NAME)))='VAL2'
OR UPPER((TRIM(NAME))) LIKE 'VAL2-%'