massucattoj opened a new pull request, #37019:
URL: https://github.com/apache/superset/pull/37019

   <!---
   Please write the PR title following the conventions at 
https://www.conventionalcommits.org/en/v1.0.0/
   Example:
   fix(dashboard): load charts correctly
   -->
   
   ### SUMMARY
   Fixes an issue where uploading CSV files to Redshift with uppercase table 
names would report a failure in the UI, even though the table was actually 
created. The "replace" option also failed completely.
   
   For this solution was added a normalize_table_name_for_upload() method to 
the base engine spec (no-op default) with a Redshift override that lowercases 
table and schema names before upload. This ensures consistency between table 
creation and metadata lookup.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   N/A - Backend fix, no UI changes.
   
   
   ### TESTING INSTRUCTIONS
   
   1. Connect to a Redshift database in Superset
   2. Go to Data → Upload CSV to Database
   3. Select a CSV file and set the table name to something with uppercase 
characters (e.g., BPO_mytest_2)
   4. Click Upload
   5. Expected: Upload succeeds without errors
   6. Try the "replace" option with the same uppercase table name
   7. Expected: Replace succeeds without errors
   
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to