[ 
https://issues.apache.org/jira/browse/VXQUERY-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15222920#comment-15222920
 ] 

Riyafa Abdul Hameed commented on VXQUERY-189:
---------------------------------------------

The new line character is introduce by the class 
org.apache.hyracks.algebricks.runtime.writers.PrinterBasedWriterFactory (line 
50). As this class does not belong to vxquery, the change needs to be 
incorporated to hyracks. Any suggestions? Also any suggestions on how detect 
where newline character is preferable?

> Separate values in a sequence using single space when serializing 
> ------------------------------------------------------------------
>
>                 Key: VXQUERY-189
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-189
>             Project: VXQuery
>          Issue Type: Bug
>            Reporter: Riyafa Abdul Hameed
>
> Current implementation of the serializer uses a new line(\n) character to 
> separate the values in a sequence when printing them. In some cases it is 
> necessary to have a single whitespace between values. It is essential to find 
> out where the new line is introduced and to decide in which cases we want a 
> single-space and in which one a new line is preferable.
> For an example consider the function fn:tokenize():
> The expected result for fn:tokenize("The cat sat on the mat", "\s+") is:
> The cat sat on the mat
> But the result generated and printed on the console is:
> The
> cat
> sat
> on
> the
> mat
> which is incorrect.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to