Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
DB-10588 DB-9581 In PySpliceContext added columnNamesCaseSensitive fu…
Browse files Browse the repository at this point in the history
…nction. (#86)
  • Loading branch information
jpanko1 authored Dec 24, 2020
1 parent 0e5091d commit 66d0ff9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions splicemachine/spark/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ def __init__(self, sparkSession, JDBC_URL=None, _unit_testing=False):
self.jvm = ''
self.context = MockedScalaContext(self.jdbcurl)

def columnNamesCaseSensitive(self, caseSensitive):
"""
Sets whether column names should be treated as case sensitive.
:param caseSensitive: (boolean) True for case sensitive, False for not case sensitive
"""
self.context.columnNamesCaseSensitive(caseSensitive)

def toUpper(self, dataframe):
"""
Returns a dataframe with all of the columns in uppercase
Expand Down

0 comments on commit 66d0ff9

Please sign in to comment.