You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metamodel.apache.org by "Kasper Sørensen (JIRA)" <ji...@apache.org> on 2015/10/25 16:17:27 UTC

[jira] [Resolved] (METAMODEL-200) No syntax available in SQL representation of Query for "function approximation"

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

Kasper Sørensen resolved METAMODEL-200.
---------------------------------------
    Resolution: Fixed
      Assignee: Kasper Sørensen

Fixed. The final prefix chosen was the "APPROXIMATE" keyword.

> No syntax available in SQL representation of Query for "function approximation"
> -------------------------------------------------------------------------------
>
>                 Key: METAMODEL-200
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-200
>             Project: Apache MetaModel
>          Issue Type: Bug
>            Reporter: Kasper Sørensen
>            Assignee: Kasper Sørensen
>
> In MetaModel we have a flag that can be set on e.g. "COUNT( * )" which indicates if the database may approximate the number instead of doing a consistent calculation. This is good for optimization scenarios where you don't need an actual count, just an estimate (for progress bars and similar stuff in UIs).
> But unfortunately we don't have any syntax support for this when dealing with String queries. Shouldn't we add that?
> I could imagine a prefix or something like that, e.g. the "tilde / ~" symbol, like this:
> {code}
> SELECT ~COUNT(*) FROM table
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)