Skip to content

Commit

Permalink
remove debug mode parameter from SessionDataset
Browse files Browse the repository at this point in the history
  • Loading branch information
eedalong committed Apr 23, 2021
1 parent fd9fb7e commit 21db35b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ public class Session
if(verify_success(status) == -1){
throw new TException("execute query failed", null);
}
var session_dataset = new SessionDataSet(sql, resp.Columns, resp.DataTypeList, resp.ColumnNameIndexMap, resp.QueryId, client, sessionId, resp.QueryDataSet, debug_mode);
var session_dataset = new SessionDataSet(sql, resp.Columns, resp.DataTypeList, resp.ColumnNameIndexMap, resp.QueryId, client, sessionId, resp.QueryDataSet);
session_dataset.fetch_size = fetch_size;
return session_dataset;

Expand Down
4 changes: 1 addition & 3 deletions client/utils/SessionDataSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public class SessionDataSet
private long session_id, query_id;
private string sql;
private NLog.Logger _logger;
private bool debug_mode = false;
List<string> column_name_lst;
Dictionary<string, int> column_name_index_map;
Dictionary<int, int> duplicate_location;
Expand Down Expand Up @@ -42,11 +41,10 @@ public class SessionDataSet



public SessionDataSet(string sql, List<string> column_name_lst, List<string> column_type_lst, Dictionary<string, int> column_name_index, long query_id, TSIService.Client client, long session_id, TSQueryDataSet query_data_set, bool debug_mode){
public SessionDataSet(string sql, List<string> column_name_lst, List<string> column_type_lst, Dictionary<string, int> column_name_index, long query_id, TSIService.Client client, long session_id, TSQueryDataSet query_data_set){
this.sql = sql;
this.query_dataset = query_data_set;
this.query_id = query_id;
this.debug_mode = debug_mode;
this._logger = NLog.LogManager.GetCurrentClassLogger();
this.current_bitmap = new byte[column_name_lst.Count];
this.column_size = column_name_lst.Count;
Expand Down

0 comments on commit 21db35b

Please sign in to comment.