1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"""
Regression test for issue #1388: sql.describe_extended parity.
PySpark scenario (from the issue):
def scenario_sql_describe_extended(session):
df = session.createDataFrame([(1,)], ["x"])
df.createOrReplaceTempView("t")
return session.sql("DESCRIBE EXTENDED t")
This test exercises the same scenario against sparkless, ensuring that:
- ``session.sql(\"DESCRIBE EXTENDED t\")`` does not raise.
- The resulting schema's ``simpleString()`` matches the current struct form.
- The data includes at least the column ``x`` with a long/integer-like type.
- ``explain()`` returns a non-empty plan string (no blank UI).
"""
"""sql.describe_extended: schema, basic data, and explain behavior (issue #1388)."""
=
=
# Schema simpleString should match the current struct representation.
=
assert ==
# Data: ensure we at least describe column x with a long/integer-like type.
=
=
assert in
assert in
# explain() should produce a non-empty plan string.
=
assert
assert !=