jayceslesar opened a new issue, #198:
URL: https://github.com/apache/iceberg-python/issues/198

   ### Feature Request / Improvement
   
   I think I have somewhat of an idea on how to do this, so far have added the 
following to `parser.py`:
   
   ```py
   CAST = CaselessKeyword("cast")
   cast_expression = (CAST + "(" + column + "as" + identifier + 
Suppress(")")).set_results_name("cast")
   
   # would need something special for the set_parse_action
   ```
   
   I am wondering a couple of things:
   Do we need a new class `CastableReference` or something? Worth expanding on 
the `Reference` class? And once that is done, how would we propagate the new 
type (Im assuming we need some way to go from a string to an `IcebergType` of 
the string the user has put into the cast operation) into the scan?


-- 
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: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to