metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henry Saputra (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (METAMODEL-1) Only use CSV count approximation when "where items" is empty
Date Sun, 12 Jan 2014 20:18:52 GMT

     [ https://issues.apache.org/jira/browse/METAMODEL-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henry Saputra updated METAMODEL-1:
----------------------------------

    Assignee:     (was: Henry Saputra)

> Only use CSV count approximation when "where items" is empty
> ------------------------------------------------------------
>
>                 Key: METAMODEL-1
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-1
>             Project: Metamodel
>          Issue Type: Bug
>            Reporter: Kasper Sørensen
>            Priority: Critical
>
> I accidentally discovered this bug today while working with the MetaModel codebase.
> It seems that when doing an "approximate COUNT" query on a CSV file we don't check if
there are any WHERE items present in the query also. I added that as a check to return null
when there are where items in the query (indicating that the count query cannot be handled
in a optimized fashion - which will in turn cause a count to be made by actually counting
all records).
> The patch is available here:
> https://gist.github.com/kaspersorensen/6079811
> Regards,
> Kasper



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message