Return-Path: X-Original-To: apmail-metamodel-dev-archive@minotaur.apache.org Delivered-To: apmail-metamodel-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0643518E3B for ; Fri, 23 Oct 2015 08:54:28 +0000 (UTC) Received: (qmail 14084 invoked by uid 500); 23 Oct 2015 08:54:27 -0000 Delivered-To: apmail-metamodel-dev-archive@metamodel.apache.org Received: (qmail 13972 invoked by uid 500); 23 Oct 2015 08:54:27 -0000 Mailing-List: contact dev-help@metamodel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@metamodel.apache.org Delivered-To: mailing list dev@metamodel.apache.org Received: (qmail 13936 invoked by uid 99); 23 Oct 2015 08:54:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2015 08:54:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B0FB22C044E for ; Fri, 23 Oct 2015 08:54:27 +0000 (UTC) Date: Fri, 23 Oct 2015 08:54:27 +0000 (UTC) From: =?utf-8?Q?Kasper_S=C3=B8rensen_=28JIRA=29?= To: dev@metamodel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (METAMODEL-200) No syntax available in SQL representation of Query for "functiona approximation" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Kasper S=C3=B8rensen created METAMODEL-200: ----------------------------------------- Summary: No syntax available in SQL representation of Query fo= r "functiona approximation" Key: METAMODEL-200 URL: https://issues.apache.org/jira/browse/METAMODEL-200 Project: Apache MetaModel Issue Type: Bug Reporter: Kasper S=C3=B8rensen In MetaModel we have a flag that can be set on e.g. "COUNT(*)" which indica= tes if the database may approximate the number instead of doing a consisten= t 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 wi= th String queries. Shouldn't we add that? I could imagine a prefix or something like that, e.g. the "tilde / ~" symbo= l, like this: {code} SELECT ~COUNT(*) FROM table {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)