itschrispeck opened a new pull request, #12018:
URL: https://github.com/apache/pinot/pull/12018

   Previously segment build failed if a column name contained `:` or `=`, since 
these characters have special meaning in `Properties` files. For example, an 
exception produced for a column like `headers.:auth` is: 
   
   ```
   j.lang.IllegalStateException: Index separator not found: headers. , segment: 
/data/pinot-server/dataDir/table_REALTIME/table__127__0__20231020T1604Z/v3 at 
c.g.common.base.Preconditions.checkState(Preconditions.java:504) at 
o.a.p.s.s.s.ColumnIndexUtils.parseIndexMapKeys(ColumnIndexUtils.java:43) at 
o.a.p.s.l.s.s.SingleFileIndexDirectory.loadMap(SingleFileIndexDirectory.java:220)
 at 
o.a.p.s.l.s.s.SingleFileIndexDirectory.load(SingleFileIndexDirectory.java:209) 
at 
o.a.p.s.l.s.s.SingleFileIndexDirectory.<init>(SingleFileIndexDirectory.java:121)
 at 
o.a.p.s.l.s.s.SegmentLocalFSDirectory.loadData(SegmentLocalFSDirectory.java:262)
 at 
o.a.p.s.l.s.s.SegmentLocalFSDirectory.load(SegmentLocalFSDirectory.java:247) at 
o.a.p.s.l.s.s.SegmentLocalFSDirectory.<init>(SegmentLocalFSDirectory.java:98) 
at 
o.a.p.s.l.s.s.SegmentLocalFSDirectory.<init>(SegmentLocalFSDirectory.java:81) 
at o.a.p.s.l.l...
   ``` 
   
   This changes the writing to be done via PropertiesWriter instead of building 
the string explicitly. 
   
   Testing: unit tests + deployed in a cluster and verified segments were 
sealed properly 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to