Tarantool discussions archive
 help / color / mirror / Atom feed
* [Tarantool-discussions] SQL built-in functions position
@ 2020-09-27 15:18 Mergen Imeev
  2020-09-27 20:56 ` Peter Gulutzan
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Mergen Imeev @ 2020-09-27 15:18 UTC (permalink / raw)
  To: Peter Gulutzan, Vladislav Shpilevoy, Nikita Pettik, kyukhin,
	tsafin, sergos
  Cc: tarantool-discussions

Hi all. I have a question that I would like to discuss.

The question is about SQL built-in functions. At the moment these 
functions are
partially described in _func and partially in src/box/sql/func.c. I 
received two
completely different suggestions from my reviewers on what to do with these
functions:
1) Move definitions completely to _func. Remove definitions from func.c.
2) Move definitions completely to func.c. Remove definitions from _func.

In the first case, users will be able to see the function definitions. 
Also, in
the future, we may allow these functions to be called from Lua (although not
sure if this is necessary). The main idea is 'all functions have the same
interface'.

In the second case, the implementation is simpler, and we can more easily
implement some features, such as "virtual" functions. For users, the 
definition
can only be seen in the documentation. The main idea is 'SQL built-in 
functions
are part of SQL'.

Which of these approaches do you think is more beneficial to us?

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-10-02 15:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-27 15:18 [Tarantool-discussions] SQL built-in functions position Mergen Imeev
2020-09-27 20:56 ` Peter Gulutzan
2020-09-28 20:07   ` Vladislav Shpilevoy
2020-09-29 19:22     ` Peter Gulutzan
2020-09-28 18:19 ` Nikita Pettik
2020-09-28 20:07   ` Vladislav Shpilevoy
2020-09-28 20:07 ` Vladislav Shpilevoy
2020-10-01 14:46   ` Kirill Yukhin
2020-10-01 21:15     ` Vladislav Shpilevoy
2020-10-02 15:18       ` Mergen Imeev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox