metabase / metabase/metabase

> This is an issue with Metabase, but not rather an issue in how you insert values in the DB

Open
#36,021 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

.Needs Triage
Dominant language
Clojure
Stars
49.3k
Forks
6.8k
Avg merge
1d 13h
Merged PRs (30d)
653

Description

> This is not an issue with Metabase, but rather an issue in how you insert values in the DB

I think you did not carefully examine the issue I raised, and I have sufficient evidence to prove that it is a bug in Metabase.

1. Autocommit is disabled by default when connecting through Connector/Python.
![image](https://github.com/metabase/metabase/assets/1617266/ad9f8aa0-c0da-432c-af40-95d3526dbda5)
Detail: https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlconnection-autocommit.html

2. Even if I set autocommit to off in MySQL, this issue still exists in Metabase.

3. During this process, I used MySQL Workbench, DBeaver, and Datagear to view the 'apple' and 'apple_view' tables in the database without encountering this issue.

4. You can spend a few minutes trying the operations mentioned in my previous issue. This problem occurs consistently, so if you're not familiar with Python or pymysql, you can seek assistance from someone who is.

_Originally posted by @dashi6174 in https://github.com/metabase/metabase/issues/35699#issuecomment-1815966811_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the referenced issue #35699 and reproducing the reported table and view behavior with the mentioned MySQL Connector/Python or pymysql setup. Confirm the behavior before tracing the relevant Metabase database interaction; done requires a clear reproduction and an identified cause or testable fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, python
Domain
databases
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.