Bug 164591 [Regression] No respond when set large number in filter TOPN[0702]
Description: Set a large number(for example, 3444444) in the "value1" of filter topN. When preview the data in the "Edit dataset" dialog, it keeps processing and no respond. If cancel the operation, no reaction too. Build Number: 2.2.0.v20061115-1059 Step to reproduce: 1.new a datasource and a dataset 2.in the dataset add a filter with top N 3.enter 3655566 in top n 4.click the "Preview Results" Actual result: It keeps processing. Can not cancel the operation. Expected result: If the number is larger than the record number, shall return the whole result set immediately. And at the same time, user could cancel the operation.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/NEvaluator.java
if ( filterPassController.getPassLevel( ) == FilterPassController.FIRST_PASS )
		{
			return doFirstPass( value );
		}
		else if ( filterPassController.getPassLevel( ) == FilterPassController.SECOND_PASS )
		{
			return doSecondPass( );
		}
		return false;
	}
	/**
	 * Do the first pass. In the first pass we maintain a value list and a row id list that will
	 * host all top/bottom N values/rowIds so that in pass 2 we can use them to filter rows out.
	 * @param value
	 * @return
	 * @throws DataException
	 */
	private boolean doFirstPass( Object value ) throws DataException
	{
		firstPassRowNumberCounter++;
		if ( valueList == null )
		{
			valueList = new BasicCachedArray( N );
			rowIdList = new BasicCachedArray( N );
			
		}
		populateValueListAndRowIdList( value, N );
		return true;
	}