Bug 213973 [2.2.2]ClassCastException throws out when preview a table share crosstab
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
}
			}
			addSortAndFilter( item, query );
			return query;
		}
		protected BaseQueryDefinition createSubQuery( ReportItemDesign item,
				BaseQueryDefinition parentQuery )
		{
			BaseQueryDefinition query = null;
			
			if ( parentQuery == null )
			{
				
				query = new QueryDefinition( null );
			}
			else
			{
				
				String name = String.valueOf( item.getID( ) );
				query = new SubqueryDefinition( name, parentQuery );
				parentQuery.getSubqueries( ).add( query );
			}
			
			query.setMaxRows( maxRows );
			if ( item.getHandle( ) instanceof ReportItemHandle )
			{
				ReportItemHandle designHandle = (ReportItemHandle) item
						.getHandle( );
				Iterator iter = designHandle.columnBindingsIterator( );
				while ( iter.hasNext( ) )