gifted-queen-80042
03/15/2022, 5:52 PMprofiling.limit configuration for SQL profiling.
• Scenario 1: Without this config parameter, the profiling runs successfully.
• Scenario 2: However, upon introducing this to say 20 rows, I run into Operational Error:
sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1044, "Access denied for user '<username>'@'%' to database '<database_name>'")
[SQL: CREATE TEMPORARY TABLE ge_temp_<temp_table> AS SELECT *
FROM <table_name>
LIMIT 20]
(Background on this error at: <http://sqlalche.me/e/13/e3q8>)
My question is more in terms of how this parameter is implemented. Given that in both the scenarios above it runs a SELECT query, why does LIMIT result in access denied error but without LIMIT, there's no error?dazzling-judge-80093
03/15/2022, 5:55 PMdazzling-judge-80093
03/15/2022, 5:58 PMprofiling.bigquery_temp_table_schema option and then all these temp tables should be created in the schema you specify here -> https://datahubproject.io/docs/metadata-ingestion/source_docs/sql_profiles/gifted-queen-80042
03/15/2022, 6:06 PMprofiling.bigquery_temp_table_schema option be used for profiling tables in MySql though?dazzling-judge-80093
03/15/2022, 6:22 PMdazzling-judge-80093
03/15/2022, 6:23 PMdazzling-judge-80093
03/15/2022, 6:23 PMgifted-queen-80042
03/15/2022, 6:25 PMdazzling-judge-80093
03/15/2022, 7:07 PMREATE TEMPORARY TABLE ge_temp_<temp_table> AS SELECT *
FROM <table_name>
LIMIT 20]square-activity-64562
03/16/2022, 8:33 AMcreate_temp_table option is mentioned here
https://github.com/great-expectations/great_expectations/blob/develop/docs_rtd/gui[…]ow_to_load_a_database_table_view_or_query_result_as_a_batch.rst
Not sure if there are any limitations on that or not in GE that needs to be explored.
Creating temp tables will not be possible when people are working with read replicas of databases.dazzling-judge-80093
03/16/2022, 8:45 AMgifted-queen-80042
03/16/2022, 1:39 PMlimit option uses the CREATE TEMPORARY TABLE query that ends up needing write permissions, and writing onto disk. However, without enabling the limit option, and having only profiling.enabled set to True, does not create/write temp tables?
And this brings me to the next question. With one of the large MySQL tables profiling results in an error: pymysql.err.InternalError: (3, "Error writing file '/var/lib/mysql/MYLb1KTy' (Errcode: 28 - No space left on device)") and it is a Read-Only account. Is it not creating files here?microscopic-jackal-16831
07/17/2023, 1:50 PMdazzling-judge-80093
07/17/2023, 1:51 PMmicroscopic-jackal-16831
07/17/2023, 1:52 PMmicroscopic-jackal-16831
07/17/2023, 2:37 PMmicroscopic-jackal-16831
07/17/2023, 2:54 PM