Closed GoogleCodeExporter closed 9 years ago
This is an issue reported on StackOverflow at
http://stackoverflow.com/questions/27590126/group-concat-automatically-add-doubl
e-quotes-only-when-the-field-contains-double
Original comment by mari...@google.com
on 13 Jan 2015 at 10:46
I got similar problem.
originally the table is like this
attempts|id
-----------
"-7" |1
"-7" |1
"-7" |1
"7" |1
run 'select GROUP_CONCAT(attempts) as attempts, id, FROM [my.table] GROUP EACH
BY id;'
the results becomes
attempts |id
--------------------------------------
"""-7""","""-7""","""-7""","""7""" |1
why so many extra double quotes are added into the results?
would you please solve this problem?
Original comment by elexy...@gmail.com
on 18 Jan 2015 at 8:38
Update: We plan to add GROUP_CONCAT_UNQUOTED in order to support the expected
semantics without breaking those who might depend on GROUP_CONCAT's current
behavior. It'll probably be 2-3 weeks before the change gets to production,
since there are several components that need to be updated.
Original comment by jcon...@google.com
on 20 Jan 2015 at 11:59
GROUP_CONCAT_UNQUOTED is now live with the desired behavior.
Original comment by jcon...@google.com
on 27 Feb 2015 at 12:40
Original issue reported on code.google.com by
mari...@google.com
on 13 Jan 2015 at 10:41