Skip to content
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

MSQ exporting fails to output headers with complex column types (array/json) #16315

Open
egor-ryashin opened this issue Apr 20, 2024 · 1 comment
Labels
Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 Uncategorized problem report

Comments

@egor-ryashin
Copy link
Contributor

egor-ryashin commented Apr 20, 2024

MSQ exporting fails to output headers with complex column types (array/json)

Affected Version

29.0.0

Description

This query produces a file with incorrect headers and complex object aren't properly converted to strings:

INSERT INTO
  EXTERN(
    local(exportPath => '/tmp/test_export11')
  )
AS csv
SELECT
  1 m1, 'a' d1, array[1,2] array1, json_object('a':1) json1

CSV contents:

v0,v1,v2,v3
1,a,[Ljava.lang.Number;@9553825,StructuredData{value={a=1}}

Expected something like:

m1,d1,array1,json1
1,a,"[1,2]","{""a"":1}"
@egor-ryashin egor-ryashin changed the title MSQ exporting fails to output headers with column types (array/json) MSQ exporting fails to output headers with complex column types (array/json) Apr 20, 2024
@egor-ryashin egor-ryashin added the Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 label Apr 20, 2024
@LakshSingla
Copy link
Contributor

29.0.1 and subsequent versions should resolve this via #16167.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 Uncategorized problem report
Projects
None yet
Development

No branches or pull requests

2 participants