-
Notifications
You must be signed in to change notification settings - Fork 9
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
Make methods and classes required for extensions public #25
Conversation
Public classes and methods should have a javadoc description. There are various inner classes called Let's not make release 0.2 until we have CALCITE-5615 working. It should be possible to run Calcite against a sql-logic-test:0.2-SNAPSHOT deployed to a local Maven or Gradle repository. |
FYI: To use maven local in Calcite build you have to use the |
I have moved the factory instances to their parents, but making the factory classes private does not allow me to call 'register'. I will submit a PR soon with multiple commits, each addressing some of these suggestions. |
In fact, I will add commits to this PR. |
I have pushed several commits which attempt to fix all the problems raised. |
Fixes #26 |
It doesn't matter very much whether it's one commit or multiple. But I don't yet see a clean abstraction to deal with extensions. Making Also, the lifecycle of I agree that an abstract base class for |
If I make (one of) the Factory private I get this error:
I generally make final fields public, but I have no problem reorganizing if you prefer. |
Yes, the Factory can be removed if I make the 'register' method a static method of the Executor. |
I have removed the Factory classes. |
One thing that is not extensible is (what is now in) the Main class. In the CalciteExecutor I just defined a new one. |
pom.xml
Outdated
@@ -30,7 +30,7 @@ SOFTWARE. | |||
</parent> | |||
|
|||
<artifactId>sql-logic-test</artifactId> | |||
<version>0.1-SNAPSHOT</version> | |||
<version>0.2-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is not necessary if you rebase onto latest main.
Signed-off-by: Mihai Budiu <[email protected]>
Signed-off-by: Mihai Budiu <[email protected]>
Signed-off-by: Mihai Budiu <[email protected]>
… base class Signed-off-by: Mihai Budiu <[email protected]>
Signed-off-by: Mihai Budiu <[email protected]>
Signed-off-by: Mihai Budiu <[email protected]>
Signed-off-by: Mihai Budiu <[email protected]>
I have rebased on main |
Please note that I have changed my github user id. I don't plan to do this again very soon, but I am leaving VMware Research next week and I didn't want my id to be tied to my employer. (That was a mistake anyway.) |
Close hydromatic#25 Signed-off-by: Mihai Budiu <[email protected]>
Fixes #24
I hope I got all the required ones.
This is required to complete https://issues.apache.org/jira/browse/CALCITE-5615