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] DESC SKIPPING IINDEX NPE #2356

Closed
penghuo opened this issue Oct 25, 2023 · 1 comment
Closed

[BUG] DESC SKIPPING IINDEX NPE #2356

penghuo opened this issue Oct 25, 2023 · 1 comment
Labels
bug Something isn't working v2.11.1 Issues targeting release v2.11.1

Comments

@penghuo
Copy link
Collaborator

penghuo commented Oct 25, 2023

Customized UT, failed.

  @Test
  void testDescSkippingIndex() {
    String descSkippingIndex = "DESC SKIPPING INDEX ON mys3.default.http_logs";
    Assertions.assertTrue(SQLQueryUtils.isIndexQuery(descSkippingIndex));
    IndexDetails indexDetails = SQLQueryUtils.extractIndexDetails(descSkippingIndex);
    FullyQualifiedTableName fullyQualifiedTableName = indexDetails.getFullyQualifiedTableName();
    Assertions.assertNull(indexDetails.getIndexName());
    Assertions.assertNull(fullyQualifiedTableName);
    Assertions.assertEquals(SKIPPING, indexDetails.getIndexType());
  }

Index Type can't be null
java.lang.NullPointerException: Index Type can't be null
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:921)
	at org.opensearch.sql.spark.dispatcher.model.IndexDetails$IndexDetailsBuilder.build(IndexDetails.java:76)
@penghuo penghuo added bug Something isn't working untriaged v2.11.1 Issues targeting release v2.11.1 labels Oct 25, 2023
@penghuo
Copy link
Collaborator Author

penghuo commented Oct 26, 2023

close by. #2357

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2.11.1 Issues targeting release v2.11.1
Projects
None yet
Development

No branches or pull requests

1 participant