xuchuanyin commented on a change in pull request #3099: [CARBONDATA-3268] Fix
for query on Varchar Columns showing Null in Presto
URL: https://github.com/apache/carbondata/pull/3099#discussion_r251231792
##########
File path:
integration/presto/src/test/scala/org/apache/carbondata/presto/integrationtest/PrestoTestNonTransactionalTableFiles.scala
##########
@@ -281,17 +303,29 @@ class PrestoTestNonTransactionalTableFiles extends
FunSuiteLike with BeforeAndAf
"height" -> 0.0,
"age" -> 0,
"salary" -> 0.0,
- "id" -> 0),
+ "id" -> 0,
+ "address" -> varcharString),
Map("name" -> "robot1",
"height" -> 0.5,
"age" -> 1,
"salary" -> 0.5,
- "id" -> 1),
+ "id" -> 1,
+ "address" -> varcharString),
Map("name" -> "robot2",
"height" -> 1.0,
"age" -> 2,
"salary" -> 1.0,
- "id" -> 2))
+ "id" -> 2,
+ "address" -> varcharString))
assert(actualResult.toString() equals expectedResult.toString())
}
+
+ test("Test for query on Varchar columns") {
+ buildTestDataSingleFile()
+ val actualRes: List[Map[String, Any]] = prestoServer.
+ executeQuery("select max(length(address)) from files")
+ val expectedRes: List[Map[String, Any]] = List(Map("_col0" -> 32001))
+ print(actualRes)
Review comment:
forget to remove?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services