From 2c2a6a0a7e557675b85478aadd1629c82ee32164 Mon Sep 17 00:00:00 2001 From: Julian Bright Date: Wed, 20 Apr 2022 10:37:23 +1000 Subject: [PATCH] Register table names with the original case in addition to lower case name --- dask_sql/context.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dask_sql/context.py b/dask_sql/context.py index 98cc46e21..804bff305 100644 --- a/dask_sql/context.py +++ b/dask_sql/context.py @@ -215,8 +215,12 @@ def create_table( gpu=gpu, **kwargs, ) + # Register table names with the original case in addition to lower case name. + # see: https://github.com/dask-contrib/dask-sql/issues/481 + self.schema[schema_name].tables[table_name] = dc self.schema[schema_name].tables[table_name.lower()] = dc if statistics: + self.schema[schema_name].statistics[table_name] = statistics self.schema[schema_name].statistics[table_name.lower()] = statistics def register_dask_table(self, df: dd.DataFrame, name: str, *args, **kwargs):