maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #13165
Re: How to know when a FUNCTION is AGGREGATE?
-
To:
"Sergei Golubchik" <serg@xxxxxxxxxxx>
-
From:
"Martijn Tonies \(Upscene Productions\)" <m.tonies@xxxxxxxxxxx>
-
Date:
Wed, 15 Jun 2022 14:35:30 +0200
-
Arc-authentication-results:
i=1; rspamd-786f5898df-rssfg; auth=pass smtp.auth=hostpapa smtp.mailfrom=m.tonies@xxxxxxxxxxx
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1655296538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=qaSvdg+53sLcaA46rXaJwaqwuSzUZJQymVNHcnHLezA=; b=mAH9Ky2c7R1iCXAqCTjOCkkCa3Lb0DAli+w6KJofnbKe1NgqkjIRZnmfvn5dESNboaNuej tXVhrlpX9wo/+NIlCiTkkIS6snLD6pEIZQk9eQz/CMzzmnp+pz6Kzp3VFKXNv5GIYELwT8 5vKbVmy/qLFtEAfD2eCtnmTsj19msGwyGkeFn2sO5QQOSTSBr9hK4D98DwvOgUmQO37MZI wA88F61fJNpWJVN7XGEIIvdrqabfoPvIof+gYQY1mXagUTJTNDZlh2T/exC4IPXkHLwv6n wZN/1vTAg02RbE5MuO4h9uVanOGP3V9IVFVIkw8mNnvp4N9xRVbatV0L0s0jgA==
-
Arc-seal:
i=1; s=arc-2022; d=mailchannels.net; t=1655296538; a=rsa-sha256; cv=none; b=3cOoEjoQ9oP+70bqR1d57HKYRROMI9/EsyA00M1hnMz0XDP22zchIRW/6YJRDgAMa7QQXY qmsXW+P0vyEdCI97EufkhxPOogTuEiYNGU49SwENFZlOPSyZ/RdUIb2t0ZJ6uS+cyUs72K pQK8LC5ZDfZN6fh4OpVMbfUgpOsJF0ZKlnydKzob94YmKwXlBfCtMsFiBZB7xeYyrM6gH0 SFhK3Y0klDXTUdt/nGx47Qn82NzckmGi+IeEcTY21lySUSqn818oROc9+O0iigNJzSasdC ruf6e6yvW21Muhn8wpugxA1umWRCAs0AZIQ4X1OAC+ZaKuUYYik1EAIfha33GA==
-
Cc:
maria-developers@xxxxxxxxxxxxxxxxxxx
-
Importance:
Normal
-
In-reply-to:
<YqnO0fcwWKfTU/Dv@pweza>
Hello Sergei,
Thank you for confirming this and adding it to the tracker ;)
As a tool developer, this is the things I look for when attempting to
recreate the CREATE statements from the available meta data.
Here's another one that MariaDB could fix ;)
https://bugs.mysql.com/bug.php?id=11082
With regards,
Martijn Tonies
Upscene Productions
https://www.upscene.com
Database Workbench - developer tool for Oracle, SQL Server, PostgreSQL,
MySQL, InterBase, NexusDB and Firebird.
-----Original Message-----
From: Sergei Golubchik
Sent: Wednesday, June 15, 2022 2:21 PM
To: Martijn Tonies (Upscene Productions)
Cc: maria-developers@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Maria-developers] How to know when a FUNCTION is AGGREGATE?
Hi, Martijn,
It seems there is no way to distinguish, short of parsing the routine
body looking for 'fetch group next row'.
I've reported it as a bug, https://jira.mariadb.org/browse/MDEV-28849
On Jun 15, Martijn Tonies (Upscene Productions) wrote:
Hi all,
Since MariaDB 10.3, you can use an AGGREGATE stored function.
https://mariadb.com/kb/en/stored-aggregate-functions/
When examining the meta data, how does one distinguish between
aggregate and normal stored functions?
Can’t find anything in the information_schema about this.
With regards,
Martijn Tonies
Upscene Productions
https://www.upscene.com
Regards,
Sergei
VP of MariaDB Server Engineering
and security@xxxxxxxxxxx
Follow ups
References