Skip to content

Commit ee8a0f2

Browse files
author
Jesse Whitehouse
committed
Immediately skip any tests on temp tables because we don't support them
5 skipped, 3 warnings, 727 errors in 40.01s Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
1 parent ef72d74 commit ee8a0f2

File tree

1 file changed

+12
-170
lines changed

1 file changed

+12
-170
lines changed

src/databricks/sqlalchemy/test/test_suite.py

Lines changed: 12 additions & 170 deletions
Original file line numberDiff line numberDiff line change
@@ -402,188 +402,30 @@ def test_empty_insert_multiple(self):
402402
"""
403403

404404

405+
@pytest.mark.reviewed
405406
class ComponentReflectionTest(ComponentReflectionTest):
406-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
407-
def test_autoincrement_col(self):
408-
"""
409-
Exception:
410-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
411-
"""
412-
413-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
414-
def test_dialect_initialize(self):
415-
"""
416-
Exception:
417-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
418-
"""
419-
420-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
421-
def test_get_columns(self):
422-
"""
423-
Exception:
424-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
425-
"""
426-
427-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
428-
def test_get_comments(self):
429-
"""
430-
Exception:
431-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
432-
"""
433-
434-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
435-
def test_get_comments_with_schema(self):
436-
"""
437-
Exception:
438-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
439-
"""
440-
441-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
442-
def test_get_default_schema_name(self):
443-
"""
444-
Exception:
445-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
446-
"""
447-
448-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
449-
def test_get_foreign_keys(self):
450-
"""
451-
Exception:
452-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
453-
"""
454-
455-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
456-
def test_get_foreign_keys(self):
457-
"""
458-
Exception:
459-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
460-
"""
461-
462-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
463-
def test_get_indexes(self):
464-
"""
465-
Exception:
466-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
467-
"""
468-
469-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
470-
def test_get_inter_schema_foreign_keys(self):
471-
"""
472-
Exception:
473-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
474-
"""
475-
476-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
477-
def test_get_noncol_index(self):
478-
"""
479-
Exception:
480-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
481-
"""
482-
483-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
484-
def test_get_pk_constraint(self):
485-
"""
486-
Exception:
487-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
488-
"""
489-
490-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
491-
def test_get_schema_names(self):
492-
"""
493-
Exception:
494-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
495-
"""
496-
497-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
498-
def test_get_schema_names_w_translate_map(self):
499-
"""
500-
Exception:
501-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
502-
"""
503-
504-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
505-
def test_get_table_names(self):
506-
"""
507-
Exception:
508-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
509-
"""
510-
511-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
512-
def test_get_table_oid(self):
513-
"""
514-
Exception:
515-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
516-
"""
517407

518-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
519-
def test_get_table_oid(self):
520-
"""
521-
Exception:
522-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
523-
"""
524-
525-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
408+
@pytest.mark.skip(reason="Databricks doesn't support temp tables.")
526409
def test_get_temp_table_columns(self):
527-
"""
528-
Exception:
529-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
530-
"""
410+
pass
531411

532-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
412+
@pytest.mark.skip(reason="Databricks doesn't support temp tables.")
533413
def test_get_temp_table_indexes(self):
534-
"""
535-
Exception:
536-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
537-
"""
414+
pass
538415

539-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
416+
@pytest.mark.skip(reason="Databricks doesn't support temp tables.")
540417
def test_get_temp_table_names(self):
541-
"""
542-
Exception:
543-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
544-
"""
418+
pass
545419

546-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
420+
@pytest.mark.skip(reason="Databricks doesn't support temp tables.")
547421
def test_get_temp_table_unique_constraints(self):
548-
"""
549-
Exception:
550-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
551-
"""
552-
553-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
554-
def test_get_temp_view_columns(self):
555-
"""
556-
Exception:
557-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
558-
"""
559-
560-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
561-
def test_get_temp_view_names(self):
562-
"""
563-
Exception:
564-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
565-
"""
422+
pass
566423

567-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
568-
def test_get_unique_constraints(self):
569-
"""
570-
Exception:
571-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
572-
"""
424+
@pytest.mark.skip(reason="Databricks doesn't support temp tables.")
425+
def test_reflect_table_temp_table(self):
426+
pass
573427

574-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
575-
def test_get_view_definition(self):
576-
"""
577-
Exception:
578-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
579-
"""
580428

581-
@pytest.mark.skip(reason="Error during execution. Requires investigation.")
582-
def test_get_view_definition(self):
583-
"""
584-
Exception:
585-
- NotImplementedError: no temp table keyword args routine for cfg: databricks+databricks://token:***redacted***@e2-dogfood.staging.cloud.databricks.com?catalog=main&http_path=%2Fsql%2F1.0%2Fwarehouses%2F5c89f447c476a5a8&schema=pysql_sqlalchemy
586-
"""
587429

588430

589431
@pytest.mark.reviewed

0 commit comments

Comments
 (0)