Beispiel #1
0
    def visitColumnDeclaration(self,
                               ctx: evaql_parser.ColumnDeclarationContext):

        data_type, dimensions = self.visit(ctx.columnDefinition())
        column_name = self.visit(ctx.uid())

        if column_name is not None:
            return ColumnDefinition(column_name, data_type, dimensions)
Beispiel #2
0
    def visitColumnDeclaration(self,
                               ctx: evaql_parser.ColumnDeclarationContext):

        data_type, dimensions = self.visit(ctx.columnDefinition())
        column_name = self.visit(ctx.uid())

        column = DataframeColumn(column_name,
                                 data_type,
                                 array_dimensions=dimensions)
        return column