1 | /* |
2 | * This Source Code Form is subject to the terms of the Mozilla Public |
3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
5 | * |
6 | * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V. |
7 | */ |
8 | |
9 | #ifndef _REL_UNNEST_H_ |
10 | #define _REL_UNNEST_H_ |
11 | |
12 | #include "sql_relation.h" |
13 | #include "sql_mvc.h" |
14 | |
15 | extern int exp_has_freevar(mvc *sql, sql_exp *e); |
16 | extern int rel_has_freevar(mvc *sql, sql_rel *r); |
17 | extern sql_rel *rel_unnest(mvc *sql, sql_rel *rel); |
18 | extern void exps_set_freevar(mvc *sql, list *exps, sql_rel *r); |
19 | |
20 | #endif /*_REL_UNNEST_H_*/ |
21 | |