Adding upstream version 23.7.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f1aa09959c
commit
27c061b7af
187 changed files with 86502 additions and 71397 deletions
|
@ -34,3 +34,10 @@ class TestSessionFunc(DataFrameValidator):
|
|||
.agg(SF.countDistinct(SF.col("employee_id")))
|
||||
)
|
||||
self.compare_spark_with_sqlglot(df, dfs, skip_schema_compare=True)
|
||||
|
||||
def test_nameless_column(self):
|
||||
query = "SELECT MAX(age) FROM employee"
|
||||
df = self.spark.sql(query)
|
||||
dfs = self.sqlglot.sql(query)
|
||||
# Spark will alias the column to `max(age)` while sqlglot will alias to `_col_0` so their schemas will differ
|
||||
self.compare_spark_with_sqlglot(df, dfs, skip_schema_compare=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue