fix: reverting Dataset names (#16243)

* reverting dataset name changes

* remove extra quotes

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
AAfghahi
2021-08-17 15:16:15 -04:00
committed by GitHub
parent 8a36356f49
commit 4119bb9c1e
6 changed files with 9 additions and 9 deletions

View File

@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
table_name: Slack Users
table_name: users
main_dttm_col: updated
description: null
default_endpoint: null

View File

@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
table_name: Slack Channel Combinations and Users
table_name: users_channels-uzooNNtSRO
main_dttm_col: null
description: null
default_endpoint: null
@@ -23,8 +23,8 @@ cache_timeout: null
schema: null
sql: >
SELECT uc1.name as channel_1, uc2.name as channel_2, count(*) AS cnt
FROM "Slack Users and Channels" uc1
JOIN "Slack Users and Channels" uc2 ON uc1.user_id = uc2.user_id
FROM users_channels uc1
JOIN users_channels uc2 ON uc1.user_id = uc2.user_id
GROUP BY uc1.name, uc2.name
HAVING uc1.name <> uc2.name
params: null

View File

@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
table_name: Slack Users and Channels
table_name: users_channels
main_dttm_col: null
description: null
default_endpoint: null

View File

@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
table_name: Video Game Sales
table_name: video_game_sales
main_dttm_col: null
description: null
default_endpoint: null

View File

@@ -56,7 +56,7 @@ def load_energy(
method="multi",
)
print("Creating table [World Bank Health Data] reference")
print("Creating table [wb_health_population] reference")
table = get_table_connector_registry()
tbl = db.session.query(table).filter_by(table_name=tbl_name).first()
if not tbl:

View File

@@ -45,7 +45,7 @@ def load_world_bank_health_n_pop( # pylint: disable=too-many-locals, too-many-s
only_metadata: bool = False, force: bool = False, sample: bool = False,
) -> None:
"""Loads the world bank health dataset, slices and a dashboard"""
tbl_name = "World Bank Health Data"
tbl_name = "wb_health_population"
database = utils.get_example_database()
table_exists = database.has_table_by_name(tbl_name)
@@ -76,7 +76,7 @@ def load_world_bank_health_n_pop( # pylint: disable=too-many-locals, too-many-s
index=False,
)
print("Creating table [World Bank Health Data] reference")
print("Creating table [wb_health_population] reference")
table = get_table_connector_registry()
tbl = db.session.query(table).filter_by(table_name=tbl_name).first()
if not tbl: