michael-s-molina commented on issue #13386:
URL: https://github.com/apache/superset/issues/13386#issuecomment-833429323


   @etr2460 Is someone from Airbnb already working on this? I just found out 
that I'll need to install all the backend infrastructure (Presto or Hive) to 
simulate the partitions. If you already have this environment working it will 
be fairly easy to fix the bug.
   
   In `TableElement.jsx`:
   
   ```
   renderWell() {
       const { table } = this.props;
       let header;
       if (table.partitions) {
         let partitionQuery;
         let partitionClipBoard;
         if (table.partitions.partitionQuery) {
           ({ partitionQuery } = table.partitions);
           const tt = t('Copy partition query to clipboard');
           partitionClipBoard = (
             <CopyToClipboard
               text={partitionQuery}
               shouldShowText={false}
               tooltipText={tt}
               copyNode={<i className="fa fa-clipboard" />}
             />
           );
         }
   ...
   ```
   I simulated on the client side a `table` with `partitions` and 
`partitionQuery` and the copy and paste is working.


-- 
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.

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