Thanks for the breakdown!

I'd suggest closing 2099, it's not really an issue, but a mere observation with 
a discussion that went nowhere. The current behavior is just fine.

The tests for 2381 look incomplete to me. I left a comment.

Cheers,
Stefan

From: [email protected] 
[mailto:[email protected]] On Behalf Of Patrick Earl
Sent: Tuesday, November 23, 2010 3:17 AM
To: [email protected]
Subject: Re: [nhibernate-development] Re: NHibernate 3 and Linq Provider

Here's a breakdown of the JIRA issues for the LINQ provider:

Things that will cause breaking changes (probably missed some, but these were 
obvious):
2099 (arguable if it should be done)
2402
2412

Bugs:
7 with fixes
12 with tests and no fixes
14 with no tests and no fixes

Improvements:
4 with fixes
1 with tests and no fixes
4 with no tests and no fixes

I'd say that it would definitely be a good idea to address 2402 and 2412 ASAP.

For bugs with tests and fixes already available, there are:
2203
2375
2381
2394 (fixes several open issues)

In general, it looks like NHibernate 3.0 will have a Linq provider in more of a 
beta state.  That should be okay though since the release will get the rest of 
the many important changes out there and free people's hands to dig a little 
bit deeper in the Linq provider.  Releasing will also likely generate more bug 
reports and patches as people start to use the new Linq provider.  That said, 
there is the down side that people might be more disappointed with the 
provider.  Perhaps it could be made clear in the release notes that the 
provider has come a long way, but we can still use people's feedback to get it 
polished up.  Would at least get people's expectations more in line with how 
things seem to be going.

Is adding a note like this a good idea, or have people's general experiences 
with the Linq provider been good enough that it doesn't seem to matter?  
Looking through the issues there are still a number of regressions from the 
original NHibernate.Linq.

Just some thoughts... do what you will with them. :)

        Patrick Earl

On Mon, Nov 22, 2010 at 3:13 PM, Fabio Maulo 
<[email protected]<mailto:[email protected]>> wrote:
Do you mean before 2010/12/04 ?

On Mon, Nov 22, 2010 at 2:27 PM, James Kovacs 
<[email protected]<mailto:[email protected]>> wrote:
I can understand your point of view, Fabio, that NHibernate has 5
other query mechanisms - many more mature - than the LINQ provider.
The reality in the .NET space is that LINQ is king. The preferred
query mechanism for LINQ-to-SQL and EF are both LINQ. Look at the
uptake of LINQ-to-NHibernate even though it's a proof-of-concept.
Having a solid LINQ implementation in v3 - as Patrick is pushing for -
will have a dramatic effect on the acceptance of NHibernate outside
its core demographic of current NH users or those coming from
Hibernate. For example, I tried a simple LINQ query with an orderby
clause and it failed with a Antlr.Runtime.NoViableAltException.

var query = from foo in session.Query<Foo>()
                  orderby foo.Bars.Count()
                  select foo;

(As you can probably guess, a Foo has a collection of Bars.) Writing
this same query in HQL works just fine:

var query = session.CreateQuery("select foo from Foo foo order by
size(foo.Bars)");

Yes, HQL is much more mature. I realize that. Newcomers to NH will
not. They'll get that wacky exception and won't think, "Is there
another way I can query with NH?" They'll think, "NH is broken."

This isn't meant to detract from the work that Steve Strong has done.
He has done an amazing job in building up the foundation, but as
Patrick points out, LINQ needs some polishing. We've got patches with
test cases waiting for evaluation. Can we try to fix the major (and
hard-to-fix later) issues before NH3 releases? Please? Pretty please?

James

On Nov 20, 11:59 am, Fabio Maulo 
<[email protected]<mailto:[email protected]>> wrote:
> I can understand your feeling.
>
> I would understand your definition of:
> - pertinent comment
> - no attention
> - many issues
>
> The Linq provider is and will be our most popular source of issue/bugs for
> the next two years, at least, but I'm sure that a lot of applications, using
> NHibernate, are not using Linq to query the DB... perhaps "fundament", "very
> important" are only the result of subjective point of view, respectable but
> *a* point of view as any other.
> The Linq provider, in NH, is only an option to query your persistent domain;
> we have another 5.
>
> More than one year ago we take the decision to begin the release process
> after Steve (Strong) has defined the new Linq provider as  ready to be
> released. We will release NH fixing what the team can do (using real
> solutions and not patches) and then we can concentrate our effort for the
> next release and, perhaps, some commiter can put the attention you are
> looking for in the issues that are important for you.
>
> P.S. perhaps you will commit by yourself.
>
>
>
>
>
>
>
>
>
> On Sat, Nov 20, 2010 at 2:33 PM, Patrick Earl 
> <[email protected]<mailto:[email protected]>> wrote:
> > Hi all.
>
> > While I'm thankful for all the work that was put into the Linq
> > provider for this release, I'm rather disappointed in how the beta
> > cycle has gone.  We're facing release, and there are still many very
> > important issues that haven't even been commented on in the Linq
> > area.  To give you some idea, in the entire beta period for the large
> > chunk of code that the Linq provider is, only 4 issues have been
> > resolved.  During that same period, 25 new issues were created with
> > virtually no activity on them.  To give you some idea of what I'm
> > talking about, here's a sampling of the issues.
>
> > Numerous people have filed and voted about parameters not having the
> > correct type:
> > NH-2222
> > NH-2234
> > NH-2244
> > NH-2394
> > A patch is available in NH-2394, without a single pertinent comment.
>
> > The null handling is another area with clear problems.  You likely
> > remember the long messages on the mailing list.  There were also very
> > few tests related to null handling, and numerous bugs.  Despite the
> > provider clearly handling nulls incorrectly, there has been no action
> > on these issues.
> > NH-2370
> > NH-2398
> > NH-2402
> > Again, there is a full patch with extended tests in NH-2402, but not
> > even a single comment on this important issue.  If NH goes to release
> > without resolving NH-2402, it will cause breaking changes in the
> > future.
>
> > There are many Linq issues with patches and tests.  I'll just name
> > NH-2403 since I submitted it.  Again, there has been no attention.
>
> > Maybe I'm annoying, but I do find it quite frustrating when about the
> > only thing that's progressing is the version number and the same bugs
> > and limitations are still present.  I've been happily using NHibernate
> > for years, but it truly is disheartening when even serious / popular
> > issues with full code and tests aren't addressed in any way.
>
> >        Patrick Earl
>
> --
> Fabio Maulo


--
Fabio Maulo

Reply via email to