Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
neelasha23 committed Jan 21, 2024
1 parent 78ab695 commit 7e291c0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/sql/cmd/columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ def columns(others):
parser.add_argument("-s", "--schema", type=str, help="Schema name", required=False)

args = parser.parse_args(others)

return inspect.get_columns(name=sanitize_identifier(args.table), schema=args.schema)
1 change: 1 addition & 0 deletions src/sql/cmd/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def snippets(others):
----------
others : str,
A string containing the command line arguments.
"""
parser = CmdParser()
parser.add_argument(
Expand Down
2 changes: 0 additions & 2 deletions src/sql/cmd/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ def test(others):
This function takes in a string containing command line arguments,
parses them to extract the table name, column name, and conditions
to return if those conditions are satisfied in that table
It also uses the kernel namespace for expanding arguments declared as
variables.
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion src/sql/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ def interactive_execute_wrapper(**kwargs):

command = SQLCommand(self, user_ns, line, cell)
# args.line: contains the line after the magic with all options removed

args = command.args
# util.expand_args_cmd(args, user_ns)

if args.section and args.alias:
raise exceptions.UsageError(
Expand Down
3 changes: 2 additions & 1 deletion src/sql/magic_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@ def execute(self, cmd_name="", others="", cell="", local_ns=None):
}

cmd = router.get(cmd_name)
return cmd(others)
if cmd:
return cmd(others)

0 comments on commit 7e291c0

Please sign in to comment.