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

DESCRIBE doesn't work with Avro Decimal #3059

Closed
millin opened this issue Jul 9, 2019 · 2 comments
Closed

DESCRIBE doesn't work with Avro Decimal #3059

millin opened this issue Jul 9, 2019 · 2 comments
Assignees

Comments

@millin
Copy link

millin commented Jul 9, 2019

KSQL ver: master branch (commit 0346933)

I have Avro topic with Decimal field that declared in schema as:

{
  "name": "coefficient",
  "type": [
    {
      "type": "bytes",
      "scale": 1,
      "precision": 4,
      "connect.version": 1,
      "connect.parameters": {
        "scale": "1",
        "connect.decimal.precision": "4"
      },
      "connect.default": "AA==",
      "connect.name": "org.apache.kafka.connect.data.Decimal",
      "logicalType": "decimal"
    },
    "null"
  ],
  "default": "\u0000"
}

I created STREAM with Avro formal:

CREATE STREAM AVRO_WITH_DECIMAL
 WITH (KAFKA_TOPIC='decimal_test', VALUE_FORMAT='AVRO');

But KSQL can't DESCRIBE it:

ksql> DESCRIBE AVRO_WITH_DECIMAL;
Invalid type in schema: BYTES

SELECT * FROM AVRO_WITH_DECIMAL
works fine

@big-andy-coates
Copy link
Contributor

Thanks reporting @millin - I'm not sure the DECIMAL work is actually complete yet. So you may be running into issues due to partial implementation. I'll raise this though.

@agavra
Copy link
Contributor

agavra commented Jul 16, 2019

fixed by #3083

@agavra agavra closed this as completed Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants