Last modified: 2012-06-05 01:42:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28964, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26964 - Subproperty breaks query
Subproperty breaks query
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal blocker (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-26 15:34 UTC by reeve.junkmail
Modified: 2012-06-05 01:42 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description reeve.junkmail 2011-01-26 15:34:27 UTC
We had a property:State, with 3 subproperties State_Code, Offer2_Code, Product_Code, all of type page.  When adding State_code as a subproperty of State and resaving the article with Property:State on it, the pages with queries referencing Property:State no longer worked.  Specifically, the query looked like this (format=count):


SELECT /* SMW::getQueryResult WikiSysop */  COUNT(DISTINCT t8.smw_id) AS count  FROM `smw_ids` AS t8 INNER JOIN `smw_inst2` AS t1 ON t8.smw_id=t1.s_id INNER JOIN `smw_atts2` AS t3 ON t1.s_id=t3.s_id INNER JOIN `smw_rels2` AS t5 ON t1.s_id=t5.s_id INNER JOIN `t6` AS t6 ON t5.p_id=t6.id  WHERE (t1.o_id='599447' AND (t3.p_id='572930') AND (t5.o_id='578754'))  LIMIT 10001


The query would hang forever until killed in mysql.  When entered in the terminal, would return an error instantly - as 

"... INNER JOIN `t6` AS t6 ON t5.p_id=t6.id ..."

table t6 does not exist.


Removing State_Code as a subproperty (but leaving the other 2) fixed the query.  Also, it might be important to note that State_Code has about 23million values.
Comment 1 Jeroen De Dauw 2011-07-22 14:47:57 UTC
Is still issue still present on SMW 1.6?
Comment 2 MWJames 2012-06-05 01:42:03 UTC
This bug is open for over a year and the initial requester did not respond to Jeroen's question therefore we might close this one. 

For the next request SMW version/MW version would be helpful in order to make a full diagnosis.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links