hongzhi-gao opened a new pull request, #736:
URL: https://github.com/apache/tsfile/pull/736

   ## Fix validation for DataFrame with only time column in 
`dataframe_to_tsfile`
   
   **Problem:** The check `len(column_schemas) == 0` never triggers when the 
DataFrame has only a time column, because in that case `column_schemas` still 
contains one element (the time column). The intended guard was to reject "no 
data columns besides time."
   
   **Change:** Require at least one **data** column (FIELD or TAG) by filtering 
out TIME columns and checking that the remaining list is non-empty before 
building the table schema.
   
   **Tests:** Existing `test_dataframe_to_tsfile_no_data_columns` now correctly 
raises `ValueError`; added `test_dataframe_to_tsfile_only_time_column_raises` 
to explicitly cover the only-time-column case.
   


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

Reply via email to