maheshrajus opened a new pull request #4154: URL: https://github.com/apache/carbondata/pull/4154 ### Why is this PR needed? need to update ### What changes were proposed in this PR? need to update ### Does this PR introduce any user interface change? - No ### Is any new testcase added? - Yes -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
Indhumathi27 commented on a change in pull request #4154: URL: https://github.com/apache/carbondata/pull/4154#discussion_r654193200 ########## File path: integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/allqueries/AllDataTypesTestCase.scala ########## @@ -73,6 +75,21 @@ class AllDataTypesTestCase extends QueryTest with BeforeAndAfterAll { } } + test("insert data with from_unixtime(0) and query") { + sql("drop table if exists time_carbon1") + sql("create table if not exists time_carbon1(time1 timestamp) stored as carbondata") + sql("insert into time_carbon1 select from_unixtime(0)") Review comment: insert into table select '', results should be NULL. After this change, it is inserting default time. Please check ########## File path: integration/spark/src/main/scala/org/apache/spark/sql/execution/command/management/CommonLoadUtils.scala ########## @@ -781,9 +781,8 @@ object CommonLoadUtils { internalRowOriginal } for (index <- timeStampIndex) { - if (internalRow.getLong(index) == 0) { - internalRow.setNullAt(index) - } else { + // if value zero case spark will fill the timestamp. no need to fill null Review comment: Should Check, internalRow.isNullAt(index) , for actual null or empty data. then insert null for that row ########## File path: integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/allqueries/AllDataTypesTestCase.scala ########## @@ -73,6 +75,21 @@ class AllDataTypesTestCase extends QueryTest with BeforeAndAfterAll { } } + test("insert data with from_unixtime(0) and query") { + sql("drop table if exists time_carbon1") + sql("create table if not exists time_carbon1(time1 timestamp) stored as carbondata") + sql("insert into time_carbon1 select from_unixtime(0)") Review comment: insert into table select '', results should be NULL. After this change, it is inserting default time. Please check and add a insert sql in this testcase -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
maheshrajus commented on a change in pull request #4154: URL: https://github.com/apache/carbondata/pull/4154#discussion_r654374684 ########## File path: integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/allqueries/AllDataTypesTestCase.scala ########## @@ -73,6 +75,21 @@ class AllDataTypesTestCase extends QueryTest with BeforeAndAfterAll { } } + test("insert data with from_unixtime(0) and query") { + sql("drop table if exists time_carbon1") + sql("create table if not exists time_carbon1(time1 timestamp) stored as carbondata") + sql("insert into time_carbon1 select from_unixtime(0)") Review comment: ok ########## File path: integration/spark/src/main/scala/org/apache/spark/sql/execution/command/management/CommonLoadUtils.scala ########## @@ -781,9 +781,8 @@ object CommonLoadUtils { internalRowOriginal } for (index <- timeStampIndex) { - if (internalRow.getLong(index) == 0) { - internalRow.setNullAt(index) - } else { + // if value zero case spark will fill the timestamp. no need to fill null Review comment: ok -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
CarbonDataQA2 commented on pull request #4154: URL: https://github.com/apache/carbondata/pull/4154#issuecomment-863572797 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
Indhumathi27 commented on pull request #4154: URL: https://github.com/apache/carbondata/pull/4154#issuecomment-864010719 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
Free forum by Nabble | Edit this page |