LINQ to NHibernate - First pass HQL parser

A brief update on the LINQ to NHibernate work that I'm doing at the mo (previous post here if you need a refresh).

Over the last few days, I've been working on test cases for the HQL string -> HQL AST part of the parser. I had a great start from Fabio, who had already compiled a vast number of queries that show pretty much the whole HQL language, so it was just a case of getting my fledgling parser to actually process them all.

The good news is that it has been a relatively painless process, and we now have 816 tests, with each test pushing a query through the parser and checking that the resultant AST matches the tree that the Hibernate implementation creates. I'm pretty happy with that - although I don't doubt that there are still a couple of gremlins to catch, it does give me a good deal of confidence that this part of the project is in pretty good shape.

Onto the HQL AST -> SQL AST processing - stay tuned!

Comments

# Reflective Perspective - Chris Alcock » The Morning Brew #303
Gravatar Reflective Perspective - Chris Alcock » The Morning Brew #303
Left by Pingback/TrackBack on 3/10/2009 8:03 AM
# Specification Pattern and LINQ to NHibernate « Andy Hitchman’s Blog
Gravatar Specification Pattern and LINQ to NHibernate « Andy Hitchman’s Blog
Left by Pingback/TrackBack on 3/13/2009 11:56 AM
# re: LINQ to NHibernate - First pass HQL parser
Gravatar What happens when you reach the milestone of 100% tests passing?
Left by Matt on 3/25/2009 4:47 AM
# re: LINQ to NHibernate - First pass HQL parser
Gravatar Once I'm at 100% (or real close), then I move onto the LINQ provider, which is the real goal for this work...
Left by sstrong on 3/30/2009 3:50 PM
# re: LINQ to NHibernate - First pass HQL parser
Gravatar How goes the work?
Left by Matt on 4/1/2009 6:58 AM
# re: LINQ to NHibernate - First pass HQL parser
Gravatar Progress nicely through the second stage & third stages (HQL AST -> SQL AST & SQL AST -> SQL). Right now, I'm testing the new parser against the main NHibernate test suite - of the 1500 or so tests, there are currently only 17 failing. So pretty close to having the parser side of the project completed.
Left by sstrong on 4/1/2009 9:58 AM
# re: LINQ to NHibernate - First pass HQL parser
Gravatar Are these changes targeted for post NH2.1?
Left by Matt on 4/6/2009 5:05 PM
# re: LINQ to NHibernate - First pass HQL parser
Gravatar This sounds great, can I download the source and send you some patches to speed up the progress?
Left by Paco on 4/9/2009 1:58 PM
# re: LINQ to NHibernate - First pass HQL parser
Gravatar Kudos to your work Steve and probably more to imeta company to "sponsor" it. Is is really appreciated.

Take your time, as allways, quality work is more welcomed then a rush-release with half-baked LINQ provider. More to it that we all love robustness and maturity of this excellent O/RM tool.

as a company leveraging nHibernate, what is a timeframe we should start teaching our staff to use LINQ instead of object SQL and become more familiar with the LINQ world?

I know it is hard to tell exactly (as a project manager I _should_ know, *grin*) but any timeframe +/- in month would be useful for us.

You only know what tools you will choose and (if) you leverage any LINQ stuff already baked on the market (there are many useful gadgets that helps making a provider).

So question is, are we looking on May-June release or we will still be in Alpha in September-October?

Again no rush, I need just some estimates if I'm _already_ late or I was right with pre-Christmas planning.

Thanks very much
Left by Steve Raynolds on 4/10/2009 5:41 PM
# re: LINQ to NHibernate - First pass HQL parser
Gravatar Hey Steve,

Timescales are a little hard to predict, but I would hope we'd be looking for an initial release around June. Currently, progress on the HQL parser has been good (another blog on that will be out in the next couple of days), so the LINQ work is imminent.
Left by sstrong on 4/11/2009 9:23 PM
# re: LINQ to NHibernate - First pass HQL parser
Gravatar June sounds really nice!

What is with the Criteria "parser"? Or you just don't need it and it will use HQL?
Left by Steve Raynolds on 4/14/2009 9:53 AM
# Levitra experience.
Gravatar Buy sublingual levitra online. Using levitra. Levitra.
Left by Levitra. on 4/23/2009 1:02 AM
# Half life of percocet.
Gravatar Percocet online. Can you snort percocet. Percocet withdrawal symptoms. Percocet addiction. Percocet. Percocet withdrawal.
Left by Percocet. on 4/23/2009 8:13 AM
# One get off lexapro.
Gravatar One get off lexapro. Stop taking lexapro. Lexapro.
Left by Lexapro. on 4/23/2009 8:17 AM
# Buy percocet online no prescription.
Gravatar Percocet picture. Percocet. Percocet and greece.
Left by Percocet withdrawal symptoms. on 4/24/2009 1:08 AM
# Metaprolol cialis.
Gravatar Generic cialis tadalafil mg pills nextag com. Online pharmacy buy cialis. Buy cialis. Purchase cialis online. Buy cialis buy viagara. Cialis.
Left by Cialis lawyers. on 4/25/2009 4:26 AM
# Phentermine diet pills.
Gravatar Phentermine 37 5mg. Phentermine online. Phentermine. Phentermine cheap. Danger of phentermine. Phentermine review.
Left by Get phentermine. on 4/25/2009 5:38 AM
# Drunk spring break girls.
Gravatar Drunk girls nude. Drunk girls. Drunk college girls. Drunk teen party girls. Drunk spring break girls. Drunk nude girls.
Left by College girls drunk. on 4/28/2009 3:53 AM
# Levitra.
Gravatar Levitra.
Left by Levitra. on 4/28/2009 9:33 PM
# Car dealer insurance.
Gravatar Texas car insurance.
Left by Car insurance. on 4/29/2009 3:36 AM
# Using cialis.
Gravatar Buy cialis. Cialis and drug craving. Cialis.
Left by Cialis. on 4/29/2009 4:58 AM
# Levitra.
Gravatar Online pharmacy cost levitra. Generic levitra. Cialis and levitra. Levitra and alcohol use. Levitra. Levitra voucher. Using levitra for eczema..
Left by Levitra. on 4/29/2009 9:26 AM
# Lexapro weight gain weight loss.
Gravatar Lexapro*weight loss. Success stories with lexapro. Lexapro. Lexapro and weight loss.
Left by Lexapro. on 4/30/2009 5:42 AM
# Effects phentermine.
Gravatar Phentermine. Discount phentermine.
Left by Phentermine 37 5mg. on 5/1/2009 5:08 AM
# Meridia.
Gravatar Meridia diet pill. Meridia.
Left by Meridia diet medication. on 5/2/2009 4:46 PM
# Specification Pattern and LINQ to NHibernate « Andy Hitchman’s Blog
Gravatar Specification Pattern and LINQ to NHibernate « Andy Hitchman’s Blog
Left by Pingback/TrackBack on 5/15/2009 12:40 PM

Leave Your Comment

Title*
Name*
Email (never displayed)
 (will show your gravatar)
Url
Comment*

Please add 4 and 5 and type the answer here:

Preview Your Comment.