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

[BUG] Invalid handling of DESCRIBE TABLES queries with the SQL search engine #9098

Open
Smjert opened this issue Dec 20, 2024 · 0 comments
Open
Labels
bug Something isn't working untriaged

Comments

@Smjert
Copy link

Smjert commented Dec 20, 2024

Describe the bug

Executing a SQL DESCRIBE TABLES LIKE <table pattern> query, causes the TABLE_NAME field in the results to contain the table pattern, instead of the actual table name.

To Reproduce

Steps to reproduce the behavior:

  1. Login anonymous in the future playground.
  2. Select the OTEL demo environment.
  3. Select Discover from the menu on the left hand side
  4. In the data source selection dropdown, type open, then select opensearch_dashboards_sample_data_logs
  5. Set the Global Time Filter start to 1 Year ago.
  6. Click into the query textbox
  7. Run DESCRIBE TABLES LIKE *o*
    • The TABLE_NAME field is *o* which seems unexpected.

Expected behavior

  • Steps 7: The table name that matched the pattern, not the pattern.

OpenSearch Version

2.18

Dashboards Version

2.18

Plugins

Alerting, anomaly-detection, asynchronous-search, cross-cluster-replication, custom-codecs, flow-framework, geospatial, index-management, job-scheduler, knn, ml, neural-search, notifications, notifications-core, observability, performance-analyzer, reports-scheduler, security, security-analytics, skills, sql, system-templates, query-insights

Screenshots

N/A

Host/Environment:

  • OS: macOS
  • Browser and version Google Chrome, version 131.0.6778.205

Additional context

N/A

@Smjert Smjert added bug Something isn't working untriaged labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant