apache / apache/pulsar

[Bug] pulsq sql report error: io.trino.spi.TrinoException: Failed to check the authorization for topic

Open
#21,851 0 comments 1 reaction 1 assignee Claimed by @ruanliang-hualun View on GitHub
type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Version

1:pulsar-3.1
2:pulsar sql config
`pulsar.auth-plugin=org.apache.pulsar.client.impl.auth.AuthenticationToken
pulsar.auth-params=token:eyJhbGcixxxxx`

### Minimal reproduce step
trino> show tables in pulsar.'public/default';
Table
----------------
generator_test
my-topic-1
(2 rows)

Query 20240104_114603_00018_mav6n, FINISHED, 1 node
Splits: 35 total, 35 done (100.00%)
0.24 [2 rows, 72B] [8 rows/s, 298B/s]

trino> select * from pulsar."public/default".generator_test;
Query 20240104_114607_00019_mav6n failed: Failed to check the authorization for topic persistent://public/default/generator_test: The credential information is empty.

### What did you expect to see?

Data should be returned normally

### What did you see instead?

![image](https://github.com/apache/pulsar/assets/65543716/92482e46-0334-4b48-a3cb-2aa68e9e0fba)

### Anything else?

none

### Are you willing to submit a PR?

- [x] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.