LISTSERV mailing list manager LISTSERV 16.5

Help for QSERV-L Archives


QSERV-L Archives

QSERV-L Archives


QSERV-L@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

QSERV-L Home

QSERV-L Home

QSERV-L  October 2013

QSERV-L October 2013

Subject:

Re: Error in SQL queries in qserv test on small dataset

From:

"Daniel L. Wang" <[log in to unmask]>

Reply-To:

General discussion for qserv (LSST prototype baseline catalog)

Date:

Tue, 1 Oct 2013 13:51:12 -0700

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (73 lines)

Hi Fabrice,

Thanks for posting the query!


mysql> SELECT s.ra, s.decl, o.raRange, o.declRange FROM   Object o
JOIN   Source s USING (objectId) WHERE  o.objectId = 390034570102582
AND    o.latestObsTime = s.taiMidPoint;

I note that there is no code for supporting the FROM ... JOIN ... USING ( ...) syntax. I started playing with it last month, but don't have anything I can merge--it's just not on the road map, even though I think that you all want it (there seem to be other things more pressing).

I think

SELECT s.ra, s.decl, o.raRange, o.declRange
FROM   Object o, Source s, where o.objectId =
WHERE  o.objectId = 390034570102582
AND o.objectId = s.objectId
AND    o.latestObsTime = s.taiMidPoint;

should work, though I haven't tested it.

If you'd like to have a look at the code I was playing with, it's on branch
u/danielw/joinSyntax1
but it's now behind the shared scan code (which I hope to clean up to 
Serge's quality and merge soon) by a fair bit.

-Daniel


On 09/30/2013 08:38 AM, Fabrice Jammes wrote:
> Hello Daniel,
>
> As told on Thursday, i've met several error on SQL queries wich works on
> previous version (without qms and new parser).
> I'm not sure if error come from the test procedure or from qserv new
> version.
> I propose to send it to you one by one with detailed log, instead of
> sending the whole list (bugs may be fixed once and solve many queries).
>
> Here's one example for test case 01 :
>
> While connected to qserv :
>
> mysql> SELECT s.ra, s.decl, o.raRange, o.declRange FROM   Object o
> JOIN   Source s USING (objectId) WHERE  o.objectId = 390034570102582
> AND    o.latestObsTime = s.taiMidPoint;
> ERROR 4120 (Proxy): Error during execution: 'open failed for chunk(s):
> 6801 6630 6800 7138 7308 6970 6971 6968 6631 7140read failed for
> chunk(s): 7478 7648 7310'
>
> xrootd and qserv-master logs are attached and it seems the errors are
> reported in xrootd.log with SQL sentence like this one :
>
>   >>Unknown column 's.ra' in 'field list' Unable to execute query: CREATE
> TABLE r_1e01fa2d9ea14d542987c2af43bb3645f_7478_0 SELECT
> s.ra,s.decl,o.raRange,o.declRange FROM LSST.Object_7478 AS o WHERE
> o.objectId=390034570102582 AND o.latestObsTime=s.taiMidPoint;
> <<---Error with piece 0 complete (size=1).
>
> Indeed it seems table Source should be in FROM clause, aliased with 's' ?
>
> I can of course give you more information if needed.
>
> Thanks,
>
> Fabrice

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

March 2018
February 2018
January 2018
December 2017
August 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use