Commits

tbrugz committed e5adef6

mondrian: when 'snowflake.maxlevel'==0 only degenerated dims are possible

Comments (0)

Files changed (1)

src_mondrian/tbrugz/sqldump/mondrianschema/MondrianSchemaDumper.java

 			}
 			
 			//dimensions
+			if(maxSnowflakeLevel!=0) {
 			for(FK fk: fks) {
 				//XXX: what if multiple FKs point to same table?
 				procDimension(cube, fk, degenerateDimCandidates, schemaModel);
 			}
+			}
+			else if(fks.size()>0) {
+				log.info("max snowflake level is 0: only degenerated dimensions will be created [cube:"+cube.name+"]");
+			}
 			
 			//degenerate dimensions - see: http://mondrian.pentaho.com/documentation/schema.php#Degenerate_dimensions
 			String degenerateDimColsStr = prop.getProperty(PROP_MONDRIAN_SCHEMA+".cube@"+propIdDecorator.get(t.getName())+".degeneratedims");