Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Calcite SQL Parser and make another entry point to query Pinot (…
…#4387) * Adding Calcite SQL Parser and make another entry point to query Pinot use SQL * Make CalciteSqlCompiler to implement AbstractCompiler to handle pql/sql parsing logic seamlessly * Make validation logics into utils * Address comments * update calcite-core exclusions
- Loading branch information
Showing
45 changed files
with
2,628 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
pinot-api/src/main/java/org/apache/pinot/client/Request.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.pinot.client; | ||
|
||
/** | ||
* Request is used in server request to host multiple pinot query types, like PQL, SQL. | ||
*/ | ||
public class Request { | ||
|
||
private String _queryFormat; | ||
private String _query; | ||
|
||
public Request(String queryFormat, String query) { | ||
_queryFormat = queryFormat; | ||
_query = query; | ||
} | ||
|
||
public String getQueryFormat() { | ||
return _queryFormat; | ||
} | ||
|
||
public void setQueryFormat(String queryType) { | ||
_queryFormat = queryType; | ||
} | ||
|
||
public String getQuery() { | ||
return _query; | ||
} | ||
|
||
public void setQuery(String query) { | ||
_query = query; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.