Hello Netta,
This issue requires change in the dialect file for Apache Drill.
Edit the file drill.js present at location C:\Program Files\Helical Insight\hi\hi-repository\System\Admin\SqlFunctions
At line 128, add the following logic:
else if(arrayElement == 'NOW()'){
arrayElement = arrayElement.replaceAll("'", "").trim();
actualFilterValuesArrayWithOutQuotes.pushUnique(arrayElement);
actualFilterValuesArray.pushUnique(arrayElement);
otherReplaceFilterValuesArray.pushUnique(arrayElement);
}
Refresh the cache and use NOW() function in the custom filter value. The correct SQL will be generated.
Please Note: The logic has been specifically added for this particular function.
Thank You,
Helical Insight.