-
Notifications
You must be signed in to change notification settings - Fork 1.9k
IndexOutOfRange Exception in KeyToVector transformer #2681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
805d579
fcdf059
058eaac
055abae
acec961
34c2f1a
540b139
f0f4e6b
3b1fc7a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1273,7 +1273,7 @@ public SchemaShape GetOutputSchema(SchemaShape inputSchema) | |
metadata.Add(slotMeta); | ||
if (colInfo.InvertHash != 0) | ||
metadata.Add(new SchemaShape.Column(MetadataUtils.Kinds.KeyValues, SchemaShape.Column.VectorKind.Vector, TextDataViewType.Instance, false)); | ||
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, col.ItemType is VectorType ? SchemaShape.Column.VectorKind.Vector : SchemaShape.Column.VectorKind.Scalar, NumberDataViewType.UInt32, true, new SchemaShape(metadata)); | ||
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, col.Kind, NumberDataViewType.UInt32, true, new SchemaShape(metadata)); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it mean input shape must be scalar? If yes, we need to throw when encountering a vector. #Resolved There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No. It means we accept vectors, scalars and varvectors In reply to: 263166153 [](ancestors = 263166153) |
||
return new SchemaShape(result.Values); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#@ TextLoader{ | ||
#@ header+ | ||
#@ sep=tab | ||
#@ col=A:I4:0 | ||
#@ col=B:I4:1-2 | ||
#@ col=CatA:U4[2]:3 | ||
#@ col=CatA:R4:4-5 | ||
#@ col=CatB:U4[2]:6 | ||
#@ col=CatB:R4:7-9 | ||
#@ col=CatC:U4[2]:10 | ||
#@ col=CatC:R4:11-12 | ||
#@ col=CatD:U4[2]:13 | ||
#@ col=CatVA:U4[3]:14-15 | ||
#@ col=CatVA:R4:16-18 | ||
#@ col=CatVB:U4[3]:19-20 | ||
#@ col=CatVB:R4:21-26 | ||
#@ col=CatVC:U4[3]:27-28 | ||
#@ col=CatVC:R4:29-34 | ||
#@ col=CatVD:U4[3]:35-36 | ||
#@ } | ||
A "" "" CatA 1 4 CatB Bit2 Bit1 Bit0 CatC 1 4 CatD "" "" 2 3 4 "" "" [0].Bit2 [0].Bit1 [0].Bit0 [1].Bit2 [1].Bit1 [1].Bit0 "" "" [0].2 [0].3 [0].4 [1].2 [1].3 [1].4 "" "" | ||
1 2 3 0 1 0 0 0 0 0 0 1 0 0 0 1 1 1 0 0 1 0 0 0 0 0 1 0 1 1 0 0 0 1 0 0 1 | ||
4 2 4 1 0 1 1 0 0 1 1 0 1 1 0 2 1 0 1 0 2 0 0 0 0 1 0 0 2 1 0 0 0 0 1 0 2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#@ TextLoader{ | ||
#@ header+ | ||
#@ sep=tab | ||
#@ col=A:TX:0 | ||
#@ col=B:TX:1-2 | ||
#@ col=CatA:U4[65536]:3 | ||
#@ col=CatA:R4:4-65539 | ||
#@ col=CatB:U4[65536]:65540 | ||
#@ col=CatB:R4:65541-65558 | ||
#@ col=CatC:U4[65536]:65559 | ||
#@ col=CatC:R4:65560-131095 | ||
#@ col=CatD:U4[65536]:131096 | ||
#@ col=CatVA:U4[65536]:131097-131098 | ||
#@ col=CatVA:R4:131099-196634 | ||
#@ col=CatVB:U4[65536]:196635-196636 | ||
#@ col=CatVB:R4:196637-196672 | ||
#@ col=CatVC:U4[65536]:196673-196674 | ||
#@ col=CatVC:R4:196675-327746 | ||
#@ col=CatVD:U4[65536]:327747-327748 | ||
#@ } | ||
A 327748 2:CatA 65539:CatB 65558:CatC 131095:CatD | ||
1 2 3 17369 327745 17369:1 65536:17369 65540:1 65545:1 65546:1 65547:1 65548:1 65550:1 65551:1 65554:1 65555:17369 82925:1 131092:17369 131093:45477 131094:61578 176572:1 192673:1 196631:45477 196632:61578 196635:1 196637:1 196638:1 196642:1 196643:1 196645:1 196648:1 196650:1 196653:1 196654:1 196655:1 196656:1 196661:1 196665:1 196667:1 196669:45477 196670:61578 242148:1 323785:1 327743:45477 327744:61578 | ||
4 4 5 20750 327745 20750:1 65536:20750 65540:1 65542:1 65546:1 65551:1 65552:1 65553:1 65555:20750 86306:1 131092:20750 131093:20750 131094:23709 151845:1 154804:1 196631:20750 196632:23709 196636:1 196638:1 196642:1 196647:1 196648:1 196649:1 196654:1 196656:1 196657:1 196658:1 196661:1 196664:1 196665:1 196666:1 196668:1 196669:20750 196670:23709 217421:1 285916:1 327743:20750 327744:23709 |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Geez, the original author sure got confused.