Skip to content

Implement Basic Example For Jdbc Row Expression Translation#13526

Merged
highker merged 1 commit intoprestodb:masterfrom
sachdevs:jdbc-row-expression-translation
Oct 22, 2019
Merged

Implement Basic Example For Jdbc Row Expression Translation#13526
highker merged 1 commit intoprestodb:masterfrom
sachdevs:jdbc-row-expression-translation

Conversation

@sachdevs
Copy link
Contributor

@sachdevs sachdevs commented Oct 9, 2019

See #13491 for interface that this is built on.

== RELEASE NOTES ==
NO RELEASE NOTE

Copy link

@highker highker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have the other PR cleaned up; then work on this one.

@sachdevs sachdevs force-pushed the jdbc-row-expression-translation branch 2 times, most recently from 6e2124b to 2c24108 Compare October 14, 2019 22:52
@sachdevs
Copy link
Contributor Author

Rebased onto #13491. Now figuring out how much more work is remaining for a good example of row expression translation.

@sachdevs sachdevs force-pushed the jdbc-row-expression-translation branch from 2c24108 to 87fd199 Compare October 14, 2019 23:48
@sachdevs sachdevs requested a review from highker October 14, 2019 23:49
@sachdevs sachdevs changed the title [WIP] Implement Basic Jdbc Row Expression Translation Implement Basic Jdbc Row Expression Translation Oct 14, 2019
@sachdevs sachdevs changed the title Implement Basic Jdbc Row Expression Translation Implement Basic Example For Jdbc Row Expression Translation Oct 14, 2019
@sachdevs sachdevs force-pushed the jdbc-row-expression-translation branch from 87fd199 to 6ea192e Compare October 15, 2019 00:28
Copy link

@highker highker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some comments

@sachdevs sachdevs force-pushed the jdbc-row-expression-translation branch 3 times, most recently from 458129d to 878202b Compare October 15, 2019 19:48
@sachdevs sachdevs requested a review from highker October 15, 2019 19:49
@sachdevs
Copy link
Contributor Author

There seem to be a few unexpected test failures - unsure why they are happening since this should be a no-op. Debugging now...

Copy link

@highker highker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make sure e2e pushdown works

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's put Map<VariableReferenceExpression, ColumnHandle> as a member instead of Context

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would we do this? at creation of JdbcFilterToSqlTranslator, we do not know what the assignments map will be.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remembered the interface was TranslatedExpression<JdbcSql>? I am fine with both though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was, it was changed during this PR, see #13526 (comment)

@sachdevs
Copy link
Contributor Author

Found the source of failing tests: Need to make JdbcSql Json serializable using Jackson since it is a serializable property on JdbcTableLayoutHandle.

@sachdevs sachdevs force-pushed the jdbc-row-expression-translation branch from 878202b to 46e9e71 Compare October 16, 2019 23:26
@sachdevs
Copy link
Contributor Author

Writing tests currently and resolving leftover comments. Using commit to check travis run to see if any regressions.

@sachdevs sachdevs force-pushed the jdbc-row-expression-translation branch 3 times, most recently from 9b18b69 to 612a964 Compare October 18, 2019 22:07
@sachdevs sachdevs requested review from hellium01 and highker October 18, 2019 22:08
@sachdevs sachdevs force-pushed the jdbc-row-expression-translation branch from 612a964 to 4000031 Compare October 19, 2019 01:00
@sachdevs sachdevs force-pushed the jdbc-row-expression-translation branch 2 times, most recently from 77dc745 to 9115569 Compare October 19, 2019 01:06
@sachdevs
Copy link
Contributor Author

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.

Copy link

@highker highker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments only. Otherwise all look good to me

@sachdevs sachdevs force-pushed the jdbc-row-expression-translation branch 4 times, most recently from 512b0f3 to 14e85a3 Compare October 21, 2019 16:38
@sachdevs sachdevs requested review from hellium01 and highker October 21, 2019 16:39
Copy link

@highker highker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment; otherwise, looks good to me

@sachdevs sachdevs force-pushed the jdbc-row-expression-translation branch from 14e85a3 to 60aa2ee Compare October 21, 2019 20:32
@sachdevs
Copy link
Contributor Author

@highker highker self-assigned this Oct 21, 2019
@sachdevs
Copy link
Contributor Author

sachdevs commented Oct 21, 2019

Rerunning timed out test. Seems to be unrelated (hive tests).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants