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

[CARBONDATA-2277] fix for filter of default values on all datatypes #2102

Closed
wants to merge 1 commit into from

Conversation

jatin9896
Copy link
Contributor

  1. Added solution to handle filter keys for the direct dictionary on default values.
  2. For no dictionary columns changes code to get correct bytes value of default values.
    Be sure to do all of the following checklist to help us incorporate
    your contribution quickly and easily:
  • Any interfaces changed? No

  • Any backward compatibility impacted? No

  • Document update required? No

  • Testing done
    Please provide details on
    - Whether new unit test cases have been added or why no new tests are required? Yes
    - How it is tested? Please attach test report.
    - Is it a performance related change? Please attach the performance test report.
    - Any additional information to help reviewers in testing this change.

  • For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@jatin9896 jatin9896 changed the title [CARBONDATA-2277] fix for filter on default values on all datatypes [CARBONDATA-2277] fix for filter of default values on all datatypes Mar 25, 2018
@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/4575/

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/3349/

@ravipesala
Copy link
Contributor

SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4073/

"'1996/01/01 11:11:11')")
}
println("Timestamp Format: " + CarbonProperties.getInstance().getProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT))
println("flag : "+ flag)
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove all println statements

checkAnswer(sql("select id from test where c3>='1995-01-01 11:11:11'"),
Seq(Row(3), Row(4), Row(1)))
checkAnswer(sql("select id from test where c3<='1995-01-02 11:11:11'"), Seq(Row(2),Row(3)))
CarbonProperties.getInstance()
Copy link
Contributor

Choose a reason for hiding this comment

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

enclose the test case in try and finally to ensure that the property getting set in try block gets unset in finally block

checkAnswer(sql("select id from test where c3<34"), Seq(Row(1), Row(2)))
checkAnswer(sql("select id from test where c3>24"), Seq(Row(2), Row(3), Row(4)))
checkAnswer(sql("select id from test where c3>=35"), Seq(Row(3), Row(4)))
checkAnswer(sql("select id from test where c3<=35"), Seq(Row(1), Row(2), Row(3)))
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a query for !=, null and not null cases also

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/3416/

@ravipesala
Copy link
Contributor

SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4151/

@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/4641/

@manishgupta88
Copy link
Contributor

LGTM

@asfgit asfgit closed this in b52f157 Apr 5, 2018
asfgit pushed a commit that referenced this pull request Apr 5, 2018
1. Added solution to handle filter keys for the direct dictionary on default values.
2. For no dictionary columns changes code to get correct bytes value of default values.

This closes #2102
geetikagupta16 pushed a commit to geetikagupta16/incubator-carbondata that referenced this pull request Apr 8, 2018
1. Added solution to handle filter keys for the direct dictionary on default values.
2. For no dictionary columns changes code to get correct bytes value of default values.

This closes apache#2102
anubhav100 pushed a commit to anubhav100/incubator-carbondata that referenced this pull request Jun 22, 2018
1. Added solution to handle filter keys for the direct dictionary on default values.
2. For no dictionary columns changes code to get correct bytes value of default values.

This closes apache#2102
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.

None yet

4 participants