summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormianrui2012-05-30 06:02:10 (EDT)
committer mwu2012-05-30 06:02:10 (EDT)
commit54dda45094fc28a878e07bb840ada64e4f528b9d (patch)
tree12992993b0798de743ac5890631479d7fcc87ec1
parentf56f5ae2d92131c2bc2e25ac8025286f05833e0d (diff)
downloadorg.eclipse.birt-54dda45094fc28a878e07bb840ada64e4f528b9d.zip
org.eclipse.birt-54dda45094fc28a878e07bb840ada64e4f528b9d.tar.gz
org.eclipse.birt-54dda45094fc28a878e07bb840ada64e4f528b9d.tar.bz2
fix TED – Issue 50347 Data Fetch Setting doesn't work after adding
computed columns in dataset with Hive data source
-rw-r--r--data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java
index fbd9ac2..74d6391 100644
--- a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java
+++ b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java
@@ -288,7 +288,10 @@ public class DataSourceQuery extends BaseQuery implements IDataSourceQuery, IPre
// for some jdbc driver need to carry out a query execution before the metadata can be achieved
// and only when the Parameters are successfully set the query execution can succeed.
addParameterDefns();
-
+
+ //Here the "max rows" means the max number of rows that can fetch from data source.
+ odaStatement.setMaxRows( this.getRowFetchLimit( ) );
+
IOdaDataSetDesign design = null;
if( session.getDataSetCacheManager( ).getCurrentDataSetDesign( ) instanceof IOdaDataSetDesign )
design = (IOdaDataSetDesign)session.getDataSetCacheManager( ).getCurrentDataSetDesign( );
@@ -327,8 +330,7 @@ public class DataSourceQuery extends BaseQuery implements IDataSourceQuery, IPre
prepareColumns( );
}
- //Here the "max rows" means the max number of rows that can fetch from data source.
- odaStatement.setMaxRows( this.getRowFetchLimit( ) );
+
// If ODA can provide result metadata, get it now
try