What happened to this site? And what's that frog about?

Assertion failure on join with int and s

F115 - Failure Feedback Forum 

Status: resolved Severity: failure Category: Vlerq Created: 2006-12-13 Updated: 2006-12-13

view a:I def {1 4} | ijoin [view {a:I b} def {1 2 3 4} | repeat 5 | group a g] | dump

 => Failed assertion at src/column.c, line 79: got == type

If column a is string, then there is no assertion failure.

Summary

This was a bug in the internal NameColView() code, one extra meta-view descent was needed.



2006-12-13 btheado

Imported

2006-12-13 jcw

Hm, I can't reproduce this:

  a  a  g
  -  -  --
  1  1  #5
  1  3  #5
  4  1  #5
  4  3  #5

Using latest code in darcs, though I don't think I touched anything related recently.

Then again - this doesn't look like the right result. Weird.

2006-12-13 jcw

More trouble with joins, I think - these two act differently:

  view a def {1 4} | join [view {a b} def {1 2 3 4}] J | html
  view a:I def {1 4} | join [view {a:I b} def {1 2 3 4}] J | html
2006-12-13 jcw

Found it - great, thanks. This was a bug in the internal NameColView() code, one extra meta-view descent was needed. Solved in darcs, see hash.c and hash.test

(the reason it didn't assert is that I was trying it out interactively with a release build)

Add a comment:

Tip: add empty lines between paragraphs and indent lines to prevent reformatting.

Your name or initials:  

Powered by Mavrig