Implement Basic Example For Jdbc Row Expression Translation#13526
Implement Basic Example For Jdbc Row Expression Translation#13526highker merged 1 commit intoprestodb:masterfrom
Conversation
highker
left a comment
There was a problem hiding this comment.
Let's have the other PR cleaned up; then work on this one.
6e2124b to
2c24108
Compare
|
Rebased onto #13491. Now figuring out how much more work is remaining for a good example of row expression translation. |
2c24108 to
87fd199
Compare
87fd199 to
6ea192e
Compare
...src/main/java/com/facebook/presto/plugin/jdbc/optimization/function/JdbcTranslationUtil.java
Outdated
Show resolved
Hide resolved
...bc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcPlanOptimizerProvider.java
Outdated
Show resolved
Hide resolved
...bc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcPlanOptimizerProvider.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/facebook/presto/plugin/jdbc/optimization/function/OperatorTranslators.java
Outdated
Show resolved
Hide resolved
presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcSql.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/facebook/presto/plugin/jdbc/optimization/RowExpressionToSqlTranslator.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/facebook/presto/plugin/jdbc/optimization/RowExpressionToSqlTranslator.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/facebook/presto/plugin/jdbc/optimization/RowExpressionToSqlTranslator.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/facebook/presto/plugin/jdbc/optimization/RowExpressionToSqlTranslator.java
Outdated
Show resolved
Hide resolved
...ase-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcComputePushdown.java
Outdated
Show resolved
Hide resolved
458129d to
878202b
Compare
|
There seem to be a few unexpected test failures - unsure why they are happening since this should be a no-op. Debugging now... |
presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcSplitManager.java
Outdated
Show resolved
Hide resolved
presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcConnector.java
Outdated
Show resolved
Hide resolved
...ase-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcComputePushdown.java
Outdated
Show resolved
Hide resolved
...bc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcFilterToSqlTranslator.java
Outdated
Show resolved
Hide resolved
...jdbc/src/test/java/com/facebook/presto/plugin/jdbc/optimization/TestJdbcComputePushdown.java
Outdated
Show resolved
Hide resolved
...jdbc/src/test/java/com/facebook/presto/plugin/jdbc/optimization/TestJdbcComputePushdown.java
Outdated
Show resolved
Hide resolved
...jdbc/src/test/java/com/facebook/presto/plugin/jdbc/optimization/TestJdbcComputePushdown.java
Outdated
Show resolved
Hide resolved
...jdbc/src/test/java/com/facebook/presto/plugin/jdbc/optimization/TestJdbcComputePushdown.java
Outdated
Show resolved
Hide resolved
presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcSql.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Let's put Map<VariableReferenceExpression, ColumnHandle> as a member instead of Context
There was a problem hiding this comment.
How would we do this? at creation of JdbcFilterToSqlTranslator, we do not know what the assignments map will be.
There was a problem hiding this comment.
I remembered the interface was TranslatedExpression<JdbcSql>? I am fine with both though.
There was a problem hiding this comment.
It was, it was changed during this PR, see #13526 (comment)
...rc/test/java/com/facebook/presto/plugin/jdbc/optimization/TestJdbcFilterToSqlTranslator.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/facebook/presto/plugin/jdbc/optimization/TestJdbcFilterToSqlTranslator.java
Outdated
Show resolved
Hide resolved
|
Found the source of failing tests: Need to make JdbcSql Json serializable using Jackson since it is a serializable property on JdbcTableLayoutHandle. |
878202b to
46e9e71
Compare
|
Writing tests currently and resolving leftover comments. Using commit to check travis run to see if any regressions. |
9b18b69 to
612a964
Compare
612a964 to
4000031
Compare
77dc745 to
9115569
Compare
|
One of my concerns with this is that I changed JdbcSplit's additionalPredicate type to JdbcExpression. Nothing seems to have been using it so I felt that it was fair to change. Other than that no functionality was touched. |
highker
left a comment
There was a problem hiding this comment.
Minor comments only. Otherwise all look good to me
...bc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcFilterToSqlTranslator.java
Outdated
Show resolved
Hide resolved
...bc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcFilterToSqlTranslator.java
Outdated
Show resolved
Hide resolved
presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcSplitManager.java
Outdated
Show resolved
Hide resolved
presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcTableLayoutHandle.java
Outdated
Show resolved
Hide resolved
presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcTableLayoutHandle.java
Outdated
Show resolved
Hide resolved
presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcExpression.java
Outdated
Show resolved
Hide resolved
...jdbc/src/test/java/com/facebook/presto/plugin/jdbc/optimization/TestJdbcComputePushdown.java
Outdated
Show resolved
Hide resolved
...to-base-jdbc/src/test/java/com/facebook/presto/plugin/jdbc/TestJdbcIntegrationSmokeTest.java
Outdated
Show resolved
Hide resolved
...to-base-jdbc/src/test/java/com/facebook/presto/plugin/jdbc/TestJdbcIntegrationSmokeTest.java
Outdated
Show resolved
Hide resolved
512b0f3 to
14e85a3
Compare
highker
left a comment
There was a problem hiding this comment.
One minor comment; otherwise, looks good to me
presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcClient.java
Outdated
Show resolved
Hide resolved
14e85a3 to
60aa2ee
Compare
|
To be merged alongside: https://github.com/facebookexternal/presto-facebook/pull/703 |
|
Rerunning timed out test. Seems to be unrelated (hive tests). |
See #13491 for interface that this is built on.