Hi, there doesn't seem to be much documentation about how to use lag() in monetdb, and I'm running into a cryptic error. Here is a snippet of a table: sql>select time, tcp_seq from packet_1_s order by time limit 10; +--------------------------+------------+ | time | tcp_seq | +==========================+============+ | 1436723208.3099999 | 2056936800 | | 1436723208.3099999 | 2056936800 | | 1436723208.3099999 | 2056936800 | | 1436723208.3099999 | 2056936800 | | 1436723208.3099999 | 2056936848 | | 1436723208.3099999 | 2056936848 | | 1436723208.3099999 | 2056936848 | | 1436723208.3099999 | 2056936848 | | 1436723208.3099999 | 2056936896 | | 1436723208.3099999 | 2056936896 | +--------------------------+------------+ 10 tuples (9.701ms) sql>select time, tcp_seq, lag(tcp_seq, 1) over (order by time) from packet_1_s order by time limit 10; TypeException:user.s22_25[502]:'calc.lag_grp' undefined in: _1678:any := calc.lag_grp(_1672:oid, _1674:oid, _1676:dbl) program contains errors Any ideas what causes this error? Thanks, Lars
On Thu, Aug 06, 2015 at 02:32:03PM +0000, Eggert, Lars wrote:
Hi,
there doesn't seem to be much documentation about how to use lag() in monetdb, and I'm running into a cryptic error. Here is a snippet of a table:
sql>select time, tcp_seq from packet_1_s order by time limit 10; +--------------------------+------------+ | time | tcp_seq | +==========================+============+ | 1436723208.3099999 | 2056936800 | | 1436723208.3099999 | 2056936800 | | 1436723208.3099999 | 2056936800 | | 1436723208.3099999 | 2056936800 | | 1436723208.3099999 | 2056936848 | | 1436723208.3099999 | 2056936848 | | 1436723208.3099999 | 2056936848 | | 1436723208.3099999 | 2056936848 | | 1436723208.3099999 | 2056936896 | | 1436723208.3099999 | 2056936896 | +--------------------------+------------+ 10 tuples (9.701ms)
sql>select time, tcp_seq, lag(tcp_seq, 1) over (order by time) from packet_1_s order by time limit 10; TypeException:user.s22_25[502]:'calc.lag_grp' undefined in: _1678:any := calc.lag_grp(_1672:oid, _1674:oid, _1676:dbl) program contains errors The implementation of lag seems to be missing. I'm in the process of reimplementing most of rank/window related code. Good change this will be in the release after the Jul2015 release.
Niels
Any ideas what causes this error?
Thanks, Lars
_______________________________________________ users-list mailing list users-list@monetdb.org https://www.monetdb.org/mailman/listinfo/users-list
-- Niels Nes, Manager ITF, Centrum Wiskunde & Informatica (CWI) Science Park 123, 1098 XG Amsterdam, The Netherlands room L3.14, phone ++31 20 592-4098 sip:4098@sip.cwi.nl url: https://www.cwi.nl/people/niels e-mail: Niels.Nes@cwi.nl
On 2015-08-06, at 16:40, Niels Nes
The implementation of lag seems to be missing. I'm in the process of reimplementing most of rank/window related code. Good change this will be in the release after the Jul2015 release.
Sorry, newbie here. When you say "seems to be missing", is this the expected situation with a vanilla install of monetdb? Do I need to install any additional packages to enable this? Or does monetdb simply not have lag/lead/etc. at the moment? Thanks, Lars
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 06/08/15 16:45, Eggert, Lars wrote:
On 2015-08-06, at 16:40, Niels Nes
wrote: The implementation of lag seems to be missing. I'm in the process of reimplementing most of rank/window related code. Good change this will be in the release after the Jul2015 release.
Sorry, newbie here. When you say "seems to be missing", is this the expected situation with a vanilla install of monetdb? Do I need to install any additional packages to enable this? Or does monetdb simply not have lag/lead/etc. at the moment?
The latter.
Thanks, Lars
_______________________________________________ users-list mailing list users-list@monetdb.org https://www.monetdb.org/mailman/listinfo/users-list
- -- Sjoerd Mullender -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVw3PAAAoJEISMxT6LrWYgz7YH/iZVkECcWpvP1QxWIvLLLo7q mOYS5IVfNOXCkBnfw+mJlyd1vtEfTnusaQv7lQCVII1hrFAjdhXAN91NbSMKizLu 2Jmrxe/Vw8EdcyLi8HfDOcgNt3reNlZLlEog27DnSeu8sLWefoOces7b0FZ3gIhb vnzJG37M5uJvVKykwX3uNCBtRC4B+CSg3/rh879k5brdgcf73f0REdgbVfj7piyE SjVBJ7E5XXqTjx9p3xz6TnW2OHJxtXW/swpVc8ST6OBRYVixMYLHJ7InY83UiiFM 2g/5zkSffi7j8NGHLMmmQVKm+gtQYwaozv/kPFT6GX327O2QHedIXVSc9SUdQfU= =V+GC -----END PGP SIGNATURE-----
On 2015-08-06, at 16:48, Sjoerd Mullender
On 06/08/15 16:45, Eggert, Lars wrote:
Sorry, newbie here. When you say "seems to be missing", is this the expected situation with a vanilla install of monetdb? Do I need to install any additional packages to enable this? Or does monetdb simply not have lag/lead/etc. at the moment?
The latter.
Argh. OK, then I'll hope that Niels' code will make it into the Jul2015 release. Thanks, Lars
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 06/08/15 16:53, Eggert, Lars wrote:
On 2015-08-06, at 16:48, Sjoerd Mullender
wrote: On 06/08/15 16:45, Eggert, Lars wrote:
Sorry, newbie here. When you say "seems to be missing", is this the expected situation with a vanilla install of monetdb? Do I need to install any additional packages to enable this? Or does monetdb simply not have lag/lead/etc. at the moment?
The latter.
Argh. OK, then I'll hope that Niels' code will make it into the Jul2015 release.
It won't. The code isn't there yet, but the release is imminent.
Thanks, Lars
_______________________________________________ users-list mailing list users-list@monetdb.org https://www.monetdb.org/mailman/listinfo/users-list
- -- Sjoerd Mullender -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVw3gJAAoJEISMxT6LrWYgV2gH/jfUwllCsZ80cGyqAPtnZftM Qo/ZWj78faKJd5PhalBEMwJSx1GrGDtq9XVWT2Er7bZ3U0y+4N7PJzjCzbo9F4tG 1s4V/hTBO7JWkWMq+/cSEQffEYpwY/3qJrpqK5SRCpcu27Wv+idQFSvA/Et+xCAG t4uM8XO6cP9q+VrPAj7wTCs8vhXRwlCg0NRwqCWb+t/Oxq+G3yoVGgfwMFXLIHas aGfkBhARj4ZPJVdRWkqgj4tcDRlA4xAmZ/bWIjEOA2rln7RalwRQF03dwY0i5p+i 6d47cD5iGM+ULKkOvG55B7H0CQCWOBjENs5rkJZP1DGvy19URo0eksA+huwGo20= =bixz -----END PGP SIGNATURE-----
participants (3)
-
Eggert, Lars
-
Niels Nes
-
Sjoerd Mullender