You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/05/01 16:15:49 UTC

[GitHub] [incubator-superset] cgivre commented on a change in pull request #6610: Add support to Apache Drill

cgivre commented on a change in pull request #6610: Add support to Apache Drill
URL: https://github.com/apache/incubator-superset/pull/6610#discussion_r280123227
 
 

 ##########
 File path: superset/assets/src/components/TableSelector.jsx
 ##########
 @@ -170,13 +170,8 @@ export default class TableSelector extends React.PureComponent {
       this.setState({ tableName: '' });
       return;
     }
-    const namePieces = tableOpt.value.split('.');
-    let tableName = namePieces[0];
-    let schemaName = this.props.schema;
-    if (namePieces.length > 1) {
-      schemaName = namePieces[0];
-      tableName = namePieces[1];
-    }
+    const tableName = tableOpt.value;
+    const schemaName = this.props.schema;
 
 Review comment:
   @villebro Thanks for your help.  I would agree that the table handling/splitting should happen on the backend, so that way custom parsing (such as what I had to do for Drill) could all happen on in the backend.
   @mistercrunch, does this complete the PR?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org