Copilot commented on code in PR #488:
URL: https://github.com/apache/tsfile/pull/488#discussion_r2083532267
##########
python/tsfile/schema.py:
##########
@@ -97,7 +101,11 @@ class TableSchema:
columns = None
def __init__(self, table_name: str, columns: List[ColumnSchema]):
+ if table_name is None or len(table_name) == 0:
+ raise ValueError("Table name cannot be None")
self.table_name = table_name.lower()
+ if len(columns) == 0 or len(columns) == 0:
Review Comment:
[nitpick] The condition 'len(columns) == 0 or len(columns) == 0' is
redundant. Consider simplifying it to 'if len(columns) == 0:' to improve
clarity.
```suggestion
if len(columns) == 0:
```
--
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]