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

[Discover Autocomplete] TESTID-80: Autocomplete Languages - DQL, SQL, PPL - Custom Written Logic #8969

Open
LDrago27 opened this issue Nov 27, 2024 · 0 comments
Labels
discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative

Comments

@LDrago27
Copy link
Collaborator

Objective

Cover remaining untested functions within PPL and SQL, ensuring that the suggestions are accurate. Tests should be written for "preferred rules", or in general areas where custom logic was written instead of relying on the grammar for these languages.

So far, this includes suggesting table names, suggesting aggregate functions for PPL and SQL.

What to test

Permutations to consider (only if they apply)

Data type:

  1. Index Patterns

  2. Indexes

  3. S3 Connections (future)

  4. Cloudwatch

  5. Security Lake

Language:

  1. DQL

  2. PPL

  3. SQL

Scenario Steps Expected result Notes
Example (See below)
PPL/SQL table name
  • For PPL, test with source =.
  • For SQL, test with SELECT * FROM.
table name appears
PPL/SQL aggregate functions
  • Test PPL by writing in a command with stats, and the suggestions should appear as expected. All the aggregate functions include a 'snippet' which should allow for tabbing into the inside of the parentheses.
  • Test SQL by putting in a WHERE clause, and verify that aggregate functions appear.
aggregate functions appear

Pre-requisites

What do we need to make sure the test can be written

Steps to setting up the scenario

  1. Have at least 1 existing workspace with index patterns

  2. Turn query enhancements on

  3. Select the index pattern

  4. Select the language for the test

Known Issues

List of known issues to reference that could impact the results of this test case

@LDrago27 LDrago27 added the discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative
Projects
Status: Todo
Development

No branches or pull requests

1 participant