[Mondrian] RE: Eigenbase perforce change 12622 for review

Julian Hyde jhyde at pentaho.com
Sat Apr 18 16:06:31 EDT 2009


You also need to add a line to
mondrian/src/main/META-INF/services/mondrian.spi.Dialect. This may have been
why you were having trouble instantiating a dialect.

Please also add some sample connect strings to mondrian.properties; and
update
http://mondrian.pentaho.org/documentation/installation.php#7_Database_compat
ibility.

Julian

> -----Original Message-----
> From: Sherman Wood [mailto:sgwood at users.sf.net] 
> Sent: Saturday, April 18, 2009 12:42 PM
> To: Ajit Joglekar; Aaron Phillips; Andreas Voss; Bart Pappyn; 
> Ezequiel Cuellar; Julian Hyde; John V. Sichi; Mat Lowery; 
> Matt Campbell; Rushan Chen; Robin Tharappel; Will Gorman; Zelaine Fong
> Subject: Eigenbase perforce change 12622 for review
> 
> http://p4web.eigenbase.org/@md=d&c=6PU@//12622?ac=10
> 
> Change 12622 by sgwood at sgwood_perforce.eigenbase.org_1666_1 
> on 2009/04/18 12:41:07
> 
> 	MONDRIAN: Netezza dialect. Mimics PostgreSQL. 
> DialectTest checks for PostgreSQL and Netezza support.
> 
> Affected files ...
> 
> ... 
> //open/mondrian/src/main/mondrian/spi/impl/JdbcDialectImpl.jav
> a#10 edit
> ... 
> //open/mondrian/src/main/mondrian/spi/impl/NetezzaDialect.java#1 add
> ... 
> //open/mondrian/testsrc/main/mondrian/test/DialectTest.java#20 edit
> 
> Differences ...
> 
> ==== 
> //open/mondrian/src/main/mondrian/spi/impl/JdbcDialectImpl.jav
> a#10 (ktext) ====
> 
> 32c32
> <  * @version $Id: 
> //open/mondrian/src/main/mondrian/spi/impl/JdbcDialectImpl.java#9 $
> ---
> >  * @version $Id: 
> //open/mondrian/src/main/mondrian/spi/impl/JdbcDialectImpl.java#10 $
> 795a796,797
> >         } else if 
> (productName.toUpperCase().indexOf("NETEZZA") >= 0) {
> >             return DatabaseProduct.NETEZZA;
> 
> ==== 
> //open/mondrian/testsrc/main/mondrian/test/DialectTest.java#20
>  (ktext) ====
> 
> 2c2
> < // $Id: 
> //open/mondrian/testsrc/main/mondrian/test/DialectTest.java#19 $
> ---
> > // $Id: 
> //open/mondrian/testsrc/main/mondrian/test/DialectTest.java#20 $
> 24a25,26
> > import mondrian.spi.impl.NetezzaDialect;
> > import mondrian.spi.impl.PostgreSqlDialect;
> 44c46
> <  * @version $Id: 
> //open/mondrian/testsrc/main/mondrian/test/DialectTest.java#19 $
> ---
> >  * @version $Id: 
> //open/mondrian/testsrc/main/mondrian/test/DialectTest.java#20 $
> 101c103
> <     public void testMySqlVersusInfobright() throws SQLException {
> ---
> >     public void testDialectVsDatabaseProduct() throws SQLException {
> 120a123,137
> >         case POSTGRESQL:
> >             // Dialect has identified that it is PostgreSQL.
> >             assertTrue(dialect instanceof PostgreSqlDialect);
> >             assertFalse(dialect instanceof NetezzaDialect);
> >             assertTrue(databaseMetaData.getDatabaseProductName()
> >                     .indexOf("PostgreSQL") >= 0);
> >             break;
> >         case NETEZZA:
> >             // Dialect has identified that it is Netezza 
> and a sub class of
> >             // PostgreSql.
> >             assertTrue(dialect instanceof PostgreSqlDialect);
> >             assertTrue(dialect instanceof NetezzaDialect);
> >             assertTrue(databaseMetaData.getDatabaseProductName()
> >                     .indexOf("Netezza") >= 0);
> >             break;
> 
> 





More information about the Mondrian mailing list