[Mondrian] Forcing "expr direction NULLS LAST" in order by without rebuild?
lucboudreau at gmail.com
Thu Apr 10 15:41:39 EDT 2014
The Oracle dialect has checks in place to validate that it talks to an
Oracle DB, so it might fallback to JdbcDialectImpl. If you turn on
debugging output in log4j, you'll see which dialect is chosen.
Try creating your own class and then pass it with the Dialect property,
making sure it is present in your classpath. I think that should work.
On Wed, Apr 9, 2014 at 1:11 PM, Jesús Barrasa <jbarrasa at outlook.com> wrote:
> Thanks! That sounds great but I cannot make it work :(
> Is this on 3.6.1 ?
> I've been trying to set the dialect to the Oracle one as it seems to use
> the group by notation that I need.
> That's what my connection string looks like:
> But I see no difference, still generating the default SQL with the CASE
> expressions in the ORDER BY.
> Am I missing something?
> > From: julianhyde at gmail.com
> > Date: Tue, 8 Apr 2014 18:12:24 -0700
> > To: mondrian at pentaho.org
> > Subject: Re: [Mondrian] Forcing "expr direction NULLS LAST" in order by
> without rebuild?
> > You can pass Dialect=com.example.MyDialect as part of the connect
> string. Mondrian will ignore its usual process of deducing the dialect from
> the JDBC database name and use the class you provide. You don’t need to
> re-compile Mondrian.
> > In other words, dialects are pluggable.
> > Julian
> > _______________________________________________
> > Mondrian mailing list
> > Mondrian at pentaho.org
> > http://lists.pentaho.org/mailman/listinfo/mondrian
> Mondrian mailing list
> Mondrian at pentaho.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mondrian