garlandz-db commented on code in PR #49749:
URL: https://github.com/apache/spark/pull/49749#discussion_r1936937468


##########
python/pyspark/sql/connect/dataframe.py:
##########
@@ -270,11 +270,11 @@ def colRegex(self, colName: str) -> Column:
 
     @property
     def dtypes(self) -> List[Tuple[str, str]]:
-        return [(str(f.name), f.dataType.simpleString()) for f in 
self.schema.fields]
+        return [(str(f.name), f.dataType.simpleString()) for f in 
self._original_schema.fields]
 
     @property
     def columns(self) -> List[str]:
-        return self.schema.names
+        return [field.name for field in self._original_schema.fields]

Review Comment:
   now its same as classic/dataframe.py implementation



-- 
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: reviews-unsubscr...@spark.apache.org

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


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

Reply via email to