Bug 110566 Wrong data set result returned when set an invalid filter expression row[0]
description: Wrong data set result returned when set an invalid filter expression row[0] steps to reproduce: 1. set a filter in data set with "row[0] equals to " 2. click on Preview tab. actual result: The first result record returned when preview expected result: As developer said that row[0] can only be generated after all the data were fetched. Row[0] can't be taken as filter expression. Then when set filter like "row[0] equals to 0". some relevant error message should pop up. Or just return null result set.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/FilterByRow.java
import org.eclipse.birt.data.engine.odi.IResultObject;
import org.eclipse.birt.data.engine.odi.IResultObjectEvent;
import org.eclipse.birt.data.engine.script.JSRowObject;
import org.eclipse.birt.data.engine.script.ScriptEvalUtil;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Scriptable;
/**
 * Implementation of IFilter, which will do filtering on row data.
 */
public class FilterByRow implements IResultObjectEvent
{
	protected List filters;
	protected Scriptable scope;
	protected JSRowObject scriptObj;
	
	protected static Logger logger = Logger.getLogger( FilterByRow.class.getName( ) );
	
	FilterByRow( List filters, Scriptable scope, JSRowObject scriptObj )
	{
		this.filters = filters;
		this.scope = scope;
		this.scriptObj = scriptObj;
		logger.log( Level.FINER, "FilterByRow starts up" );
	}
	
	/*
	 * @see org.eclipse.birt.data.engine.odi.IResultObjectEvent#process(org.eclipse.birt.data.engine.odi.IResultObject)
	 */
	public boolean process( IResultObject row , int rowIndex) throws DataException
	{