From 79bef43520035ca5e04572efb802b576b3996505 Mon Sep 17 00:00:00 2001 From: andrewMorrison95 <144026000+andrewMorrison95@users.noreply.github.com> Date: Mon, 18 Mar 2024 11:48:03 +0000 Subject: [PATCH 1/2] Update rdbstandard.q changing attributes partition key to be generic in case of int partitioning --- code/rdb/rdbstandard.q | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/rdb/rdbstandard.q b/code/rdb/rdbstandard.q index 8cd22f456..01ad7e426 100644 --- a/code/rdb/rdbstandard.q +++ b/code/rdb/rdbstandard.q @@ -1,5 +1,5 @@ // Get the relevant RDB attributes -.proc.getattributes:{`date`tables!(.rdb.rdbpartition[],();tables[])} +.proc.getattributes:{`partition`tables!(.rdb.getpartition[],();tables[])} \d .rdb @@ -19,4 +19,4 @@ upd:@[value;`upd;{insert}]; //value of upd /-set the upd function in the top level namespace upd:.rdb.upd -.u.end:{[d] .rdb.endofday[d;()!()]}; \ No newline at end of file +.u.end:{[d] .rdb.endofday[d;()!()]}; From 9d2b04ddf3aaeac50c161210dde871969fe720f2 Mon Sep 17 00:00:00 2001 From: andrewMorrison95 <144026000+andrewMorrison95@users.noreply.github.com> Date: Mon, 18 Mar 2024 11:49:37 +0000 Subject: [PATCH 2/2] Update hdbstandard.q Changing get attributes to first evaluate variable in hdb (either `date or `int) which is returned by .Q.pf if no such variable to extract partitions from return list of existing partitions via .Q.PV --- code/hdb/hdbstandard.q | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/hdb/hdbstandard.q b/code/hdb/hdbstandard.q index cb1f75dc7..eaced895c 100644 --- a/code/hdb/hdbstandard.q +++ b/code/hdb/hdbstandard.q @@ -4,4 +4,5 @@ reload:{ system"l ."} // Get the relevant HDB attributes -.proc.getattributes:{`date`tables!(@[value;`date;`date$()];tables[])} +.proc.getattributes:{`partition`tables!(@[value;.Q.pf;.Q.PV];tables[])} +