Changeset: b67e86afaa1e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b67e86afaa1e
Modified Files:
sql/backends/monet5/sql.c
Branch: default
Log Message:
Remove experimental code
diffs (78 lines):
diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -4066,74 +4066,6 @@ SQLdrop_hash(Client cntxt, MalBlkPtr mb,
}
-/*
- * LZ compression is inherited from the underlying stream implementation.
- */
-static str
-gzcompression(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci, str
(*func) (int *, int *, str *), const char *name)
-{
- str *sch = (str *) getArgReference(stk, pci, 1);
- str *tbl = (str *) getArgReference(stk, pci, 2);
- sql_schema *s;
- sql_table *t;
- mvc *m = NULL;
- str msg = getSQLContext(cntxt, mb, &m, NULL);
- sql_trans *tr = m->session->tr;
- node *o;
- int ret, i;
- char buf[PATHLENGTH], *sbuf = buf;
-
- if ((msg = checkSQLContext(cntxt)) != NULL)
- return msg;
- s = mvc_bind_schema(m, *sch);
- if (s == NULL)
- throw(SQL, name, "3F000!Schema missing");
- t = mvc_bind_table(m, s, *tbl);
- if (t == NULL)
- throw(SQL, name, "42S02!Table missing");
-
- /* actually build the hash on the multi-column primary key */
-
- for (o = t->columns.set->h; msg == MAL_SUCCEED && o; o = o->next) {
- BAT *b;
- sql_column *c = o->data;
-
- for (i = 0; i < 3; i++) {
- b = store_funcs.bind_col(tr, c, i);
- if (b == NULL)
- throw(SQL, name, "Can not access descriptor");
- snprintf(buf, PATHLENGTH, "%s_%s_%s_%d", *sch, *tbl,
c->base.name, i);
- msg = (*func) (&ret, &b->batCacheid, &sbuf);
- BBPreleaseref(b->batCacheid);
- }
- }
- return msg;
-}
-
-str
-SQLgzcompress(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
-{
- return gzcompression(cntxt, mb, stk, pci, CMDbbpcompress,
"sql.gzcompress");
-}
-
-str
-SQLgzdecompress(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
-{
- return gzcompression(cntxt, mb, stk, pci, CMDbbpdecompress,
"sql.gzdecompress");
-}
-
-str
-SQLtruncate(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
-{
- return gzcompression(cntxt, mb, stk, pci, CMDbbptruncate,
"sql.truncate");
-}
-
-str
-SQLexpand(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
-{
- return gzcompression(cntxt, mb, stk, pci, CMDbbpexpand, "sql.expand");
-}
-
/* after an update on the optimizer catalog, we have to change
* the internal optimizer pipe line administration
* The minimal and default pipelines may not be changed.
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list