Changeset: f2f35f67e237 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f2f35f67e237
Modified Files:
        gdk/gdk_private.h
Branch: Jan2022
Log Message:

Print tail width for string bats in algo debug output.


diffs (35 lines):

diff --git a/gdk/gdk_private.h b/gdk/gdk_private.h
--- a/gdk/gdk_private.h
+++ b/gdk/gdk_private.h
@@ -361,12 +361,13 @@ ilog2(BUN x)
 }
 
 /* some macros to help print info about BATs when using ALGODEBUG */
-#define ALGOBATFMT     "%s#" BUNFMT "@" OIDFMT "[%s]%s%s%s%s%s%s%s%s%s"
+#define ALGOBATFMT     "%s#" BUNFMT "@" OIDFMT "[%s%s]%s%s%s%s%s%s%s%s%s"
 #define ALGOBATPAR(b)                                                  \
        BATgetId(b),                                                    \
        BATcount(b),                                                    \
        b->hseqbase,                                                    \
        ATOMname(b->ttype),                                             \
+       
b->ttype==TYPE_str?b->twidth==1?"1":b->twidth==2?"2":b->twidth==4?"4":"8":"", \
        !b->batTransient ? "P" : b->theap->parentid != b->batCacheid ? "V" : 
b->tvheap && b->tvheap->parentid != b->batCacheid ? "v" : "T", \
        BATtdense(b) ? "D" : b->ttype == TYPE_void && b->tvheap ? "X" : 
ATOMstorage(b->ttype) == TYPE_str && GDK_ELIMDOUBLES(b->tvheap) ? "E" : "", \
        b->tsorted ? "S" : b->tnosorted ? "!s" : "",                    \
@@ -377,7 +378,7 @@ ilog2(BUN x)
        b->torderidx ? "O" : "",                                        \
        b->timprints ? "I" : b->theap->parentid && 
BBP_cache(b->theap->parentid)->timprints ? "(I)" : ""
 /* use ALGOOPTBAT* when BAT is optional (can be NULL) */
-#define ALGOOPTBATFMT  "%s%s" BUNFMT "%s" OIDFMT "%s%s%s%s%s%s%s%s%s%s%s%s"
+#define ALGOOPTBATFMT  "%s%s" BUNFMT "%s" OIDFMT "%s%s%s%s%s%s%s%s%s%s%s%s%s"
 #define ALGOOPTBATPAR(b)                                               \
        b ? BATgetId(b) : "",                                           \
        b ? "#" : "",                                                   \
@@ -386,6 +387,7 @@ ilog2(BUN x)
        b ? b->hseqbase : 0,                                            \
        b ? "[" : "",                                                   \
        b ? ATOMname(b->ttype) : "",                                    \
+       b ? 
b->ttype==TYPE_str?b->twidth==1?"1":b->twidth==2?"2":b->twidth==4?"4":"8":"" : 
"", \
        b ? "]" : "",                                                   \
        b ? !b->batTransient ? "P" : b->theap && b->theap->parentid != 
b->batCacheid ? "V" : b->tvheap && b->tvheap->parentid != b->batCacheid ? "v" : 
"T" : "", \
        b ? BATtdense(b) ? "D" : b->ttype == TYPE_void && b->tvheap ? "X" : 
ATOMstorage(b->ttype) == TYPE_str && GDK_ELIMDOUBLES(b->tvheap) ? "E" : "" : 
"", \
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to