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

Commit 66d0ff9

Browse files
authored
DB-10588 DB-9581 In PySpliceContext added columnNamesCaseSensitive function. (#86)
1 parent 0e5091d commit 66d0ff9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

splicemachine/spark/context.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ def __init__(self, sparkSession, JDBC_URL=None, _unit_testing=False):
7878
self.jvm = ''
7979
self.context = MockedScalaContext(self.jdbcurl)
8080

81+
def columnNamesCaseSensitive(self, caseSensitive):
82+
"""
83+
Sets whether column names should be treated as case sensitive.
84+
85+
:param caseSensitive: (boolean) True for case sensitive, False for not case sensitive
86+
"""
87+
self.context.columnNamesCaseSensitive(caseSensitive)
88+
8189
def toUpper(self, dataframe):
8290
"""
8391
Returns a dataframe with all of the columns in uppercase

0 commit comments

Comments
 (0)