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

During Batch Loading we get Unparsable Query but on Query View it works fine | Docker compose V28.0.0 #15384

Open
matthewfarrugia-haud opened this issue Nov 16, 2023 · 0 comments

Comments

@matthewfarrugia-haud
Copy link

We are getting in the UI when we try to do a batch file upload before we start loading.

Affected Version

The Druid version where the problem was encountered is version 28.0.0

Description

We have special characters during loading im not sure it this is causing the error or not. Other formats worked without any issues.
When you use this in the query viewer and execute the query is parsed and data is loaded successful

REPLACE INTO "categorised_data" OVERWRITE ALL
WITH "ext" AS (
  SELECT *
  FROM TABLE(
    EXTERN(
      '{"type":"local","baseDir":"/opt/shared/data","filter":"*.out"}',
      '{"type":"tsv","findColumnsFromHeader":true,"delimiter":"\u001f;","listDelimiter":"\u001e"}'
    )
  ) EXTEND ("tpdu_mt_oa" BIGINT, "sccp_calling_gt" BIGINT, "smsc_gt" BIGINT, "tpdu_user_data" VARCHAR, U&"category_list\001e" VARCHAR)
)
SELECT
  MILLIS_TO_TIMESTAMP("tpdu_mt_oa") AS "__time",
  "sccp_calling_gt",
  "smsc_gt",
  "tpdu_user_data",
  MV_TO_ARRAY(U&"category_list\001e") AS U&"category_list\001e"
FROM "ext"
PARTITIONED BY DAY

sample:

tpdu_mt_oa�;sccp_calling_gt�;smsc_gt�;tpdu_user_data�;category_list�
123234�;123123123�;12313123�;hello�;278�
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant