Repository: great-expectations/great_expectations

Issue:
Use cleaner solution for non-truncating division in python 2
Prefer `from __future__ import division` to `1.*x/y`


Discussion:
Done inline during improve_partitions push.

Resolving patch:
diff --git a/great_expectations/cli/v012/checkpoint.py b/great_expectations/cli/v012/checkpoint.py
--- a/great_expectations/cli/v012/checkpoint.py
+++ b/great_expectations/cli/v012/checkpoint.py
@@ -121,7 +121,7 @@ def checkpoint_new(checkpoint, suite, directory, datasource):
 
     cli_message(
         f"""<green>A Checkpoint named `{checkpoint}` was added to your project!</green>
-  - To run this Checkpoint, run `great_expectations checkpoint run {checkpoint}`"""
+  - To run this Checkpoint, run `great_expectations --v2-api checkpoint run {checkpoint}`"""
     )
     send_usage_message(
         data_context=context,


Test patch:
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/bigquery_python_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/bigquery_python_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/bigquery_python_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/bigquery_python_example.py
@@ -28,7 +28,7 @@
         },
         "default_inferred_data_connector_name": {
             "class_name": "InferredAssetSqlDataConnector",
-            "name": "whole_table",
+            "include_schema_name": True,
         },
     },
 }
@@ -66,7 +66,7 @@
 batch_request = BatchRequest(
     datasource_name="my_bigquery_datasource",
     data_connector_name="default_inferred_data_connector_name",
-    data_asset_name="taxi_data",  # this is the name of the table you want to retrieve
+    data_asset_name="demo.taxi_data",  # this is the name of the table you want to retrieve
     batch_spec_passthrough={
         "bigquery_temp_table": "ge_temp"
     },  # this is the name of the table you would like to use a 'temp_table'
@@ -82,7 +82,7 @@
 # NOTE: The following code is only for testing and can be ignored by users.
 assert isinstance(validator, ge.validator.validator.Validator)
 assert [ds["name"] for ds in context.list_datasources()] == ["my_bigquery_datasource"]
-assert "taxi_data" in set(
+assert "demo.taxi_data" in set(
     context.get_available_data_asset_names()["my_bigquery_datasource"][
         "default_inferred_data_connector_name"
     ]
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/bigquery_yaml_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/bigquery_yaml_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/bigquery_yaml_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/bigquery_yaml_example.py
@@ -27,7 +27,7 @@
            - default_identifier_name
    default_inferred_data_connector_name:
        class_name: InferredAssetSqlDataConnector
-       name: whole_table
+       include_schema_name: true
 """
 
 # Please note this override is only to provide good UX for docs and tests.
@@ -68,7 +68,7 @@
 batch_request = BatchRequest(
     datasource_name="my_bigquery_datasource",
     data_connector_name="default_inferred_data_connector_name",
-    data_asset_name="taxi_data",  # this is the name of the table you want to retrieve
+    data_asset_name="demo.taxi_data",  # this is the name of the table you want to retrieve
     batch_spec_passthrough={
         "bigquery_temp_table": "ge_temp"
     },  # this is the name of the table you would like to use a 'temp_table'
@@ -84,7 +84,7 @@
 # NOTE: The following code is only for testing and can be ignored by users.
 assert isinstance(validator, ge.validator.validator.Validator)
 assert [ds["name"] for ds in context.list_datasources()] == ["my_bigquery_datasource"]
-assert "taxi_data" in set(
+assert "demo.taxi_data" in set(
     context.get_available_data_asset_names()["my_bigquery_datasource"][
         "default_inferred_data_connector_name"
     ]
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/mssql_python_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/mssql_python_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/mssql_python_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/mssql_python_example.py
@@ -33,7 +33,7 @@
         },
         "default_inferred_data_connector_name": {
             "class_name": "InferredAssetSqlDataConnector",
-            "name": "whole_table",
+            "include_schema_name": True,
         },
     },
 }
@@ -51,7 +51,7 @@
     datasource_name="my_mssql_datasource",
     data_connector_name="default_runtime_data_connector_name",
     data_asset_name="default_name",  # this can be anything that identifies this data
-    runtime_parameters={"query": "SELECT TOP 10 * from taxi_data"},
+    runtime_parameters={"query": "SELECT TOP 10 * from dbo.taxi_data"},
     batch_identifiers={"default_identifier_name": "default_identifier"},
 )
 
@@ -70,7 +70,7 @@
 batch_request = BatchRequest(
     datasource_name="my_mssql_datasource",
     data_connector_name="default_inferred_data_connector_name",
-    data_asset_name="taxi_data",  # this is the name of the table you want to retrieve
+    data_asset_name="dbo.taxi_data",  # this is the name of the table you want to retrieve
 )
 context.create_expectation_suite(
     expectation_suite_name="test_suite", overwrite_existing=True
@@ -83,7 +83,7 @@
 # NOTE: The following code is only for testing and can be ignored by users.
 assert isinstance(validator, ge.validator.validator.Validator)
 assert [ds["name"] for ds in context.list_datasources()] == ["my_mssql_datasource"]
-assert "taxi_data" in set(
+assert "dbo.taxi_data" in set(
     context.get_available_data_asset_names()["my_mssql_datasource"][
         "default_inferred_data_connector_name"
     ]
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/mssql_yaml_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/mssql_yaml_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/mssql_yaml_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/mssql_yaml_example.py
@@ -32,7 +32,7 @@
            - default_identifier_name
    default_inferred_data_connector_name:
        class_name: InferredAssetSqlDataConnector
-       name: whole_table
+       include_schema_name: true
 """
 
 # Please note this override is only to provide good UX for docs and tests.
@@ -51,7 +51,7 @@
     datasource_name="my_mssql_datasource",
     data_connector_name="default_runtime_data_connector_name",
     data_asset_name="default_name",  # this can be anything that identifies this data
-    runtime_parameters={"query": "SELECT TOP 10 * from taxi_data"},
+    runtime_parameters={"query": "SELECT TOP 10 * from dbo.taxi_data"},
     batch_identifiers={"default_identifier_name": "default_identifier"},
 )
 context.create_expectation_suite(
@@ -69,7 +69,7 @@
 batch_request = BatchRequest(
     datasource_name="my_mssql_datasource",
     data_connector_name="default_inferred_data_connector_name",
-    data_asset_name="taxi_data",  # this is the name of the table you want to retrieve
+    data_asset_name="dbo.taxi_data",  # this is the name of the table you want to retrieve
 )
 context.create_expectation_suite(
     expectation_suite_name="test_suite", overwrite_existing=True
@@ -82,7 +82,7 @@
 # NOTE: The following code is only for testing and can be ignored by users.
 assert isinstance(validator, ge.validator.validator.Validator)
 assert [ds["name"] for ds in context.list_datasources()] == ["my_mssql_datasource"]
-assert "taxi_data" in set(
+assert "dbo.taxi_data" in set(
     context.get_available_data_asset_names()["my_mssql_datasource"][
         "default_inferred_data_connector_name"
     ]
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/mysql_python_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/mysql_python_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/mysql_python_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/mysql_python_example.py
@@ -30,7 +30,7 @@
         },
         "default_inferred_data_connector_name": {
             "class_name": "InferredAssetSqlDataConnector",
-            "name": "whole_table",
+            "include_schema_name": True,
         },
     },
 }
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/mysql_yaml_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/mysql_yaml_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/mysql_yaml_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/mysql_yaml_example.py
@@ -29,7 +29,7 @@
            - default_identifier_name
    default_inferred_data_connector_name:
        class_name: InferredAssetSqlDataConnector
-       name: whole_table
+       include_schema_name: true
 """
 
 # Please note this override is only to provide good UX for docs and tests.
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/postgres_python_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/postgres_python_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/postgres_python_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/postgres_python_example.py
@@ -30,7 +30,7 @@
         },
         "default_inferred_data_connector_name": {
             "class_name": "InferredAssetSqlDataConnector",
-            "name": "whole_table",
+            "include_schema_name": True,
         },
     },
 }
@@ -48,7 +48,7 @@
     datasource_name="my_postgres_datasource",
     data_connector_name="default_runtime_data_connector_name",
     data_asset_name="default_name",  # this can be anything that identifies this data
-    runtime_parameters={"query": "SELECT * from taxi_data LIMIT 10"},
+    runtime_parameters={"query": "SELECT * from public.taxi_data LIMIT 10"},
     batch_identifiers={"default_identifier_name": "default_identifier"},
 )
 
@@ -67,7 +67,7 @@
 batch_request = BatchRequest(
     datasource_name="my_postgres_datasource",
     data_connector_name="default_inferred_data_connector_name",
-    data_asset_name="taxi_data",  # this is the name of the table you want to retrieve
+    data_asset_name="public.taxi_data",  # this is the name of the table you want to retrieve
 )
 context.create_expectation_suite(
     expectation_suite_name="test_suite", overwrite_existing=True
@@ -80,7 +80,7 @@
 # NOTE: The following code is only for testing and can be ignored by users.
 assert isinstance(validator, ge.validator.validator.Validator)
 assert [ds["name"] for ds in context.list_datasources()] == ["my_postgres_datasource"]
-assert "taxi_data" in set(
+assert "public.taxi_data" in set(
     context.get_available_data_asset_names()["my_postgres_datasource"][
         "default_inferred_data_connector_name"
     ]
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/postgres_yaml_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/postgres_yaml_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/postgres_yaml_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/postgres_yaml_example.py
@@ -29,7 +29,7 @@
            - default_identifier_name
    default_inferred_data_connector_name:
        class_name: InferredAssetSqlDataConnector
-       name: whole_table
+       include_schema_name: true
 """
 
 # Please note this override is only to provide good UX for docs and tests.
@@ -48,7 +48,7 @@
     datasource_name="my_postgres_datasource",
     data_connector_name="default_runtime_data_connector_name",
     data_asset_name="default_name",  # this can be anything that identifies this data
-    runtime_parameters={"query": "SELECT * from taxi_data LIMIT 10"},
+    runtime_parameters={"query": "SELECT * from public.taxi_data LIMIT 10"},
     batch_identifiers={"default_identifier_name": "default_identifier"},
 )
 context.create_expectation_suite(
@@ -66,7 +66,7 @@
 batch_request = BatchRequest(
     datasource_name="my_postgres_datasource",
     data_connector_name="default_inferred_data_connector_name",
-    data_asset_name="taxi_data",  # this is the name of the table you want to retrieve
+    data_asset_name="public.taxi_data",  # this is the name of the table you want to retrieve
 )
 context.create_expectation_suite(
     expectation_suite_name="test_suite", overwrite_existing=True
@@ -79,7 +79,7 @@
 # NOTE: The following code is only for testing and can be ignored by users.
 assert isinstance(validator, ge.validator.validator.Validator)
 assert [ds["name"] for ds in context.list_datasources()] == ["my_postgres_datasource"]
-assert "taxi_data" in set(
+assert "public.taxi_data" in set(
     context.get_available_data_asset_names()["my_postgres_datasource"][
         "default_inferred_data_connector_name"
     ]
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/redshift_python_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/redshift_python_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/redshift_python_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/redshift_python_example.py
@@ -39,7 +39,7 @@
         },
         "default_inferred_data_connector_name": {
             "class_name": "InferredAssetSqlDataConnector",
-            "name": "whole_table",
+            "include_schema_name": True,
         },
     },
 }
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/redshift_yaml_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/redshift_yaml_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/redshift_yaml_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/redshift_yaml_example.py
@@ -38,7 +38,7 @@
            - default_identifier_name
    default_inferred_data_connector_name:
        class_name: InferredAssetSqlDataConnector
-       name: whole_table
+       include_schema_name: true
 """
 
 # Please note this override is only to provide good UX for docs and tests.
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/snowflake_python_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/snowflake_python_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/snowflake_python_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/snowflake_python_example.py
@@ -30,7 +30,7 @@
         },
         "default_inferred_data_connector_name": {
             "class_name": "InferredAssetSqlDataConnector",
-            "name": "whole_table",
+            "include_schema_name": True,
         },
     },
 }
@@ -48,7 +48,9 @@
     datasource_name="my_snowflake_datasource",
     data_connector_name="default_runtime_data_connector_name",
     data_asset_name="default_name",  # this can be anything that identifies this data
-    runtime_parameters={"query": "SELECT * from taxi_data LIMIT 10"},
+    runtime_parameters={
+        "query": f"SELECT * from {sfSchema.lower()}.taxi_data LIMIT 10"
+    },
     batch_identifiers={"default_identifier_name": "default_identifier"},
 )
 
@@ -67,7 +69,7 @@
 batch_request = BatchRequest(
     datasource_name="my_snowflake_datasource",
     data_connector_name="default_inferred_data_connector_name",
-    data_asset_name="taxi_data",  # this is the name of the table you want to retrieve
+    data_asset_name=f"{sfSchema.lower()}.taxi_data",  # this is the name of the table you want to retrieve
 )
 context.create_expectation_suite(
     expectation_suite_name="test_suite", overwrite_existing=True
@@ -80,7 +82,7 @@
 # NOTE: The following code is only for testing and can be ignored by users.
 assert isinstance(validator, ge.validator.validator.Validator)
 assert [ds["name"] for ds in context.list_datasources()] == ["my_snowflake_datasource"]
-assert "taxi_data" in set(
+assert f"{sfSchema.lower()}.taxi_data" in set(
     context.get_available_data_asset_names()["my_snowflake_datasource"][
         "default_inferred_data_connector_name"
     ]
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/snowflake_yaml_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/snowflake_yaml_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/snowflake_yaml_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/snowflake_yaml_example.py
@@ -29,7 +29,7 @@
            - default_identifier_name
    default_inferred_data_connector_name:
        class_name: InferredAssetSqlDataConnector
-       name: whole_table
+       include_schema_name: true
 """
 
 # Please note this override is only to provide good UX for docs and tests.
@@ -48,7 +48,9 @@
     datasource_name="my_snowflake_datasource",
     data_connector_name="default_runtime_data_connector_name",
     data_asset_name="default_name",  # this can be anything that identifies this data
-    runtime_parameters={"query": "SELECT * from taxi_data LIMIT 10"},
+    runtime_parameters={
+        "query": f"SELECT * from {sfSchema.lower()}.taxi_data LIMIT 10"
+    },
     batch_identifiers={"default_identifier_name": "default_identifier"},
 )
 
@@ -67,7 +69,7 @@
 batch_request = BatchRequest(
     datasource_name="my_snowflake_datasource",
     data_connector_name="default_inferred_data_connector_name",
-    data_asset_name="taxi_data",  # this is the name of the table you want to retrieve
+    data_asset_name=f"{sfSchema.lower()}.taxi_data",  # this is the name of the table you want to retrieve
 )
 context.create_expectation_suite(
     expectation_suite_name="test_suite", overwrite_existing=True
@@ -80,7 +82,7 @@
 # NOTE: The following code is only for testing and can be ignored by users.
 assert isinstance(validator, ge.validator.validator.Validator)
 assert [ds["name"] for ds in context.list_datasources()] == ["my_snowflake_datasource"]
-assert "taxi_data" in set(
+assert f"{sfSchema.lower()}.taxi_data" in set(
     context.get_available_data_asset_names()["my_snowflake_datasource"][
         "default_inferred_data_connector_name"
     ]
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/sqlite_python_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/sqlite_python_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/sqlite_python_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/sqlite_python_example.py
@@ -21,7 +21,7 @@
         },
         "default_inferred_data_connector_name": {
             "class_name": "InferredAssetSqlDataConnector",
-            "name": "whole_table",
+            "include_schema_name": True,
         },
     },
 }
@@ -40,7 +40,7 @@
     data_connector_name="default_runtime_data_connector_name",
     data_asset_name="default_name",  # this can be anything that identifies this data
     runtime_parameters={
-        "query": "SELECT * from yellow_tripdata_sample_2019_01 LIMIT 10"
+        "query": "SELECT * from main.yellow_tripdata_sample_2019_01 LIMIT 10"
     },
     batch_identifiers={"default_identifier_name": "default_identifier"},
 )
@@ -59,7 +59,7 @@
 batch_request = BatchRequest(
     datasource_name="my_sqlite_datasource",
     data_connector_name="default_inferred_data_connector_name",
-    data_asset_name="yellow_tripdata_sample_2019_01",  # this is the name of the table you want to retrieve
+    data_asset_name="main.yellow_tripdata_sample_2019_01",  # this is the name of the table you want to retrieve
 )
 context.create_expectation_suite(
     expectation_suite_name="test_suite", overwrite_existing=True
@@ -72,7 +72,7 @@
 # NOTE: The following code is only for testing and can be ignored by users.
 assert isinstance(validator, ge.validator.validator.Validator)
 assert [ds["name"] for ds in context.list_datasources()] == ["my_sqlite_datasource"]
-assert "yellow_tripdata_sample_2019_01" in set(
+assert "main.yellow_tripdata_sample_2019_01" in set(
     context.get_available_data_asset_names()["my_sqlite_datasource"][
         "default_inferred_data_connector_name"
     ]
diff --git a/tests/integration/docusaurus/connecting_to_your_data/database/sqlite_yaml_example.py b/tests/integration/docusaurus/connecting_to_your_data/database/sqlite_yaml_example.py
--- a/tests/integration/docusaurus/connecting_to_your_data/database/sqlite_yaml_example.py
+++ b/tests/integration/docusaurus/connecting_to_your_data/database/sqlite_yaml_example.py
@@ -20,7 +20,7 @@
            - default_identifier_name
    default_inferred_data_connector_name:
        class_name: InferredAssetSqlDataConnector
-       name: whole_table
+       include_schema_name: true
 """
 
 # Please note this override is only to provide good UX for docs and tests.
@@ -39,7 +39,7 @@
     data_connector_name="default_runtime_data_connector_name",
     data_asset_name="default_name",  # this can be anything that identifies this data
     runtime_parameters={
-        "query": "SELECT * from yellow_tripdata_sample_2019_01 LIMIT 10"
+        "query": "SELECT * from main.yellow_tripdata_sample_2019_01 LIMIT 10"
     },
     batch_identifiers={"default_identifier_name": "default_identifier"},
 )
@@ -58,7 +58,7 @@
 batch_request = BatchRequest(
     datasource_name="my_sqlite_datasource",
     data_connector_name="default_inferred_data_connector_name",
-    data_asset_name="yellow_tripdata_sample_2019_01",  # this is the name of the table you want to retrieve
+    data_asset_name="main.yellow_tripdata_sample_2019_01",  # this is the name of the table you want to retrieve
 )
 context.create_expectation_suite(
     expectation_suite_name="test_suite", overwrite_existing=True
@@ -71,7 +71,7 @@
 # NOTE: The following code is only for testing and can be ignored by users.
 assert isinstance(validator, ge.validator.validator.Validator)
 assert [ds["name"] for ds in context.list_datasources()] == ["my_sqlite_datasource"]
-assert "yellow_tripdata_sample_2019_01" in set(
+assert "main.yellow_tripdata_sample_2019_01" in set(
     context.get_available_data_asset_names()["my_sqlite_datasource"][
         "default_inferred_data_connector_name"
     ]