Aggarwal-Raghav commented on PR #6242:
URL: https://github.com/apache/hive/pull/6242#issuecomment-3697121826

   On your latest changes, select * is working now in beeline ✅, but casting to 
string is not working ❌, you can check by adding 
   `SELECT CAST(ts_ns AS STRING) FROM t;` in timestamp_ns.q 
   ```
   Caused by: java.lang.RuntimeException: Hive 2 Internal error: type = 
nanosecond timestamp
        at 
org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorConverter$TextConverter.convert(PrimitiveObjectInspectorConverter.java:520)
        at 
org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorConverter$TextConverter.convert(PrimitiveObjectInspectorConverter.java:412)
        at 
org.apache.hadoop.hive.ql.udf.generic.GenericUDFToString.evaluate(GenericUDFToString.java:57)
        at 
org.apache.hadoop.hive.ql.exec.ExprNodeGenericFuncEvaluator._evaluate(ExprNodeGenericFuncEvaluator.java:231)
        at 
org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator.evaluate(ExprNodeEvaluator.java:80)
        at 
org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator.evaluate(ExprNodeEvaluator.java:68)
        at 
org.apache.hadoop.hive.ql.exec.SelectOperator.process(SelectOperator.java:87)
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to