Project: talenddataquality
Issue TDQ-11981: The related data can not shown in the "Data Preview" section  after selecting column when create column analysis and set context variable in Where clause
1.Create column analysis by right clicking Analyses.(do not choose column) 2.Set context varaible for Where clause 3.Click Select Columns button 4.Click OK button Expected result: The all column names and data should be shown under "Data Preview" section. Actual result: Just column name show, no data shows.see attachment, the error log as below: {code} com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'context.new1' in 'where clause' sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:408) com.mysql.jdbc.Util.handleNewInstance(Util.java:409) com.mysql.jdbc.Util.getInstance(Util.java:384) com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052) com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4232) com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4164) com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2615) com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2776) com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2832) com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2781) com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:908) com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:788) org.talend.cwm.db.connection.DatabaseSQLExecutor.executeQuery(DatabaseSQLExecutor.java:151) org.talend.dataquality.record.linkage.ui.composite.table.ColumnAnalysisDataSamTable.createPreviewData(ColumnAnalysisDataSamTable.java:125) org.talend.dataquality.record.linkage.ui.composite.table.DataSampleTable.getPreviewData(DataSampleTable.java:1074) org.talend.dataquality.record.linkage.ui.composite.table.DataSampleTable.reDrawTable(DataSampleTable.java:1054) org.talend.dataprofiler.core.ui.editor.analysis.AbstractAnalysisMetadataPage.refreshPreviewTable(AbstractAnalysisMetadataPage.java:1103) org.talend.dataprofiler.core.ui.editor.analysis.AbstractAnalysisMetadataPage.refreshPreviewData(AbstractAnalysisMetadataPage.java:1455) org.talend.dataprofiler.core.ui.editor.analysis.AbstractAnalysisMetadataPage.openColumnsSelectionDialog(AbstractAnalysisMetadataPage.java:1357) org.talend.dataprofiler.core.ui.editor.analysis.AbstractAnalysisMetadataPage$12.mouseDown(AbstractAnalysisMetadataPage.java:1330) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:192) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) org.talend.rcp.intro.Application.start(Application.java:197) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:483) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) org.eclipse.equinox.launcher.Main.run(Main.java:1465) {code}
Story points: 1