Skip to content

Commit 6677423

Browse files
committedNov 6, 2024
bug #43: But it does
need to be counted when it is one-element long, as with .../hapi/data?id=D1_SP_HIA&start=2007-09-28T23:59:00.000Z&stop=2007-09-29T07:01:00.000Z&parameters=time_tags,Half_interval'
1 parent 0b1c130 commit 6677423

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎HapiServerBase/src/org/hapiserver/source/tap/CefFileIterator.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,9 @@ private HapiRecord parseRecord(ByteBuffer record) {
512512
ParamStruct p = cef.parameters.get(key);
513513
int index= p.cefFieldPos[0];
514514
if (index==-1 ) { // Non-record-varying
515-
//columnIndices.add(Collections.singletonList(-i));
515+
if ( ((String[])p.entries.get("DATA")).length==1 ) {
516+
columnIndices.add(Collections.singletonList(-i));
517+
}
516518
String[] nonRecordVaryingValues= (String[])p.entries.get("DATA");
517519
vfields.put( -i, nonRecordVaryingValues );
518520
} else {

0 commit comments

Comments
 (0)