Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: SAP HANA Calculation View - CE_PROJECTION checking for single and double quote

$
0
0

Hi Victoria,

 

first of all: don't use the CE_PROJECTION for this. CE functions are dead (Calculation Engine (CE) Functions - Rest in Peace)

 

Use SQL instead!

 

Something like

 

select *

from  quotes

    where mytext like '%"%'

    or mytext like '%''%'

 

does the trick easily.

 

To use CE_PROJECTION filter expressions, you would use the MATCH (<column>, '<search tearm> ') expression.

 

As you are looking for double and single quotation marks, this interferes with the general SQL Script parsing. So you likely will need to use variables here.

In case you managed to get it working till here ( I failed at the single quote search) you still need to make the OR combination in the filter expression.

 

For simple terms OR seems to work, but I wasn't able to get two or more MATCH expressions working in a single CE_PROJECTION call.

 

Bottom line: if it is possible to do something like this in CE_PROJECTION it is far to complicated to bother with it. Especially when the alternative with SQL is so simple.

 

- Lars


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>