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

TISPARK-21 delete redundant dag column that affects index single read #304

Merged
merged 2 commits into from
Apr 9, 2018

Conversation

birdstorm
Copy link
Contributor

@birdstorm birdstorm commented Apr 8, 2018

The additional dag column when field is empty seems unnecessary. It also causes index single read to require a non index nor handle column.
Delete its usage to fix index single read.

@birdstorm
Copy link
Contributor Author

/run-all-tests

assert(execDBTSAndJudge("select b from prefix where b >= \"bbc\" and b < \"bbd\""))
assert(execDBTSAndJudge("select c, b from prefix where b = \"bb\" and b < \"bbc\""))
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Prefix index tests have been moved to prefixIndexTestSuite.

@birdstorm
Copy link
Contributor Author

/run-all-tests

@birdstorm
Copy link
Contributor Author

PTAL @Novemser @ilovesoup

@@ -123,7 +123,7 @@ class BaseTiSparkSuite extends QueryTest with SharedSQLContext {

def execDBTSAndJudge(str: String, skipped: Boolean = false): Boolean =
try {
compResult(querySpark(str), queryTiDB(str))
compResult(querySpark(str), queryTiDB(str), str.contains(" order by "))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

missed isOrdered check here which results in test case failure.

Copy link
Contributor

@ilovesoup ilovesoup left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants