1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- import logging
1615from collections .abc import Callable
1716from pathlib import Path
1817
2221from mostlyai .sdk ._data .file .utils import make_data_table_from_container
2322from mostlyai .sdk .domain import Connector , Generator , ModelType
2423
25- _LOG = logging .getLogger (__name__ )
26-
2724
2825def execute_step_pull_training_data (
2926 * ,
@@ -35,8 +32,6 @@ def execute_step_pull_training_data(
3532 update_progress : Callable ,
3633) -> tuple [list [str ], int ]:
3734 schema = _create_training_schema (generator = generator , connectors = connectors )
38- _LOG .info (f"execute_step_pull_training_data: { generator = } " )
39- _LOG .info (f"execute_step_pull_training_data: { schema .tables [target_table_name ].primary_key = } " )
4035
4136 # fetch total rows
4237 tgt_table_total_rows = schema .tables [target_table_name ].row_count
@@ -72,7 +67,7 @@ def _create_training_schema(generator: Generator, connectors: list[Connector]) -
7267 container = create_container_from_connector (connector )
7368 container .set_location (table .location )
7469 # create DataTable
75- data_table = make_data_table_from_container (container )
70+ data_table = make_data_table_from_container (container , lazy_fetch_primary_key = False )
7671 data_table .name = table .name
7772 data_table .primary_key = table .primary_key
7873 if table .columns :
0 commit comments