You are not logged in.
Configuration : TOP 4.2.3r67267
When trying to watch valid or invalid rows on a Pattern Matching Column Analysis, TOP generates this SQL statement : "SELECT * FROM <table> WHERE null OR <column> IS NULL", causing an error and forcing to edit the SQL statement.
It is the same error when trying to show valid/invalid column(s).
The TOP/Libraries/Indicators/System Indicators/Pattern Matching/Regular_Expression_Matching SQL Template has been correctly coded and tested for my MS SQL Server 2005 DBS : SELECT COUNT(CASE WHEN dbo.REGEXP(<%=__COLUMN_NAMES__%>,<%=__PATTERN_EXPR__%>,0) =1 THEN 1 END), COUNT(*) FROM <%=__TABLE_NAME__%> <%=__WHERE_CLAUSE__%>
I searched but did not find the way to modify the SQL template used for listing the valid/invalid rows or columns.
Any issue ?
There is no SQL template used for listing the valid/invalid rows or columns. It's rather done in the Java code and uses the generated query of the indicator.
There may be a problem with that Java code if I read you well.
I suggest that you raise an issue in our bugtracker and a developer will have a deeper look at it. http://jira.talendforge.org
Thank you for your answer.
I am not yet granted to raise an issue on the bugtracker (I hope soon).
Anyway, I found another way for listing valid/invalid rows/columns via DQ Rules.
Thank you, PRGX02.
For Sebastiao : The analysis related in my post was run by DBMS (parameter "Execution Engine" set to "SQL", not "Java"). I don't really know whether that precision is accurate.
NB : When setting "Java" as "Execution Engine", I get an error message "Fail to run this analysis..... Error message : [Microsoft][SQL Native Client]Index de descripteur non valide". (That is not a problem for me as long as DBMS engine is OK).
For your information, it is the same on TALEND OPEN SUITE for DATA QUALITY V5.0.0 I installed today.
Last edited by GillesDurozoi (2011-12-01 16:53:34)
Thanks Gilles for the precision. We indeed understand that the analysis is run by the DBMS.
The problem when you select the Java engine is another issue. Do you get this issue with a simple analysis with one Regex indicator?
The issue "Execution Engine = Java" get an error message "Fail to run this analysis..... Error message : [Microsoft][SQL Native Client]Index de descripteur non valide" is obtained both with a single column regex pattern analysis or any other simple column analysis such as row count.
My Config : WXP Pro SP3, JVM 1.6.0_20, TOS-DQ 5.0.0.r72978, MS SQL Native Client 2005.90.5000.00