Relative Content

Tag Archive for great-expectations

great expectation context issue when using multiple RunTimeBatchRequest using query

context = gx.get_context() datasource_config = { “name”: “my_postgres_datasource”, “class_name”: “Datasource”, “execution_engine”: { “class_name”: “SqlAlchemyExecutionEngine”, # Modifying to check the connection string “connection_string”: f”postgresql+psycopg2://{self.db_params[‘user’]}:{self.db_params[‘password’]}@{self.db_params[‘host’]}:{self.db_params[‘port’]}/{self.db_params[‘database’]}”, }, “data_connectors”: { “default_runtime_data_connector_name”: { “class_name”: “RuntimeDataConnector”, “batch_identifiers”: [“default_identifier_name”], }, “default_inferred_data_connector_name”: { “class_name”: “InferredAssetSqlDataConnector”, “include_schema_name”: True, }, }, } context.add_datasource(**datasource_config) datasource = context.get_datasource(“my_postgres_datasource”) ***Above is my gx_context in which i have initalized […]