You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "drauschenbach (via GitHub)" <gi...@apache.org> on 2024/11/03 14:32:32 UTC

Re: [I] Using string datatype from python raises "Exception: The type 13 is not valid" [datafusion]

drauschenbach commented on issue #693:
URL: https://github.com/apache/datafusion/issues/693#issuecomment-2453448921

   This issue seems obsolete now.
   
   __To Verify__
   
   ```python
   import datafusion
   import pyarrow
   
   f = datafusion.functions
   
   batch = pyarrow.RecordBatch.from_arrays(
       [pyarrow.array(["a", "b", "c"]), pyarrow.array([4, 5, 6])],
       names=["a", "b"],
   )
   ctx = datafusion.SessionContext()
   df = ctx.create_dataframe([[batch]])
   print(df)
   ```
   
   ```
   DataFrame()
   +---+---+
   | a | b |
   +---+---+
   | a | 4 |
   | b | 5 |
   | c | 6 |
   +---+---+
   ```


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org