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
"""
Regression test for issue #1386: sql.show_databases parity.
PySpark scenario (from the issue):
def scenario_sql_show_databases(session):
return session.sql("SHOW DATABASES")
This test exercises the same scenario against sparkless, ensuring that:
- ``session.sql("SHOW DATABASES")`` does not raise.
- The resulting schema's ``simpleString()`` matches the current struct form.
- The data includes both ``default`` and ``global_temp`` databases.
- ``explain()`` returns a non-empty plan string (no blank UI).
"""
"""sql.show_databases: schema, data, and explain behavior (issue #1386)."""
=
=
# Schema simpleString should match the current struct representation.
=
assert ==
# Data should include both default and global_temp namespaces.
=
=
assert in
assert in
# explain() should produce a non-empty plan string.
=
assert
assert !=